Skip to content

Bump generic-raw-uart to 1.33 and add kernel 6.14+ patches - #4643

Merged
sairon merged 1 commit into
home-assistant:devfrom
jens-maus:pr/generic-raw-uart-1.33
Apr 14, 2026
Merged

sairon merged 1 commit into
home-assistant:devfrom
jens-maus:pr/generic-raw-uart-1.33

Conversation

@jens-maus

@jens-maus jens-maus commented Apr 14, 2026 •

Copy link
Copy Markdown
Member

This PR bumps the generic-raw-uart package (required for OpenCCU compatibility) to version 1.33 and adds a patch on top of it to introduce kernel 6.14+ compatibility so that the generic-raw-uart kernel driver works with newer kernel versions. This refs alexreinert/piVCCU#575

Summary by CodeRabbit

  • Bug Fixes

    • Removed emulated termios2/glibc 2.42 compatibility layer from the raw UART driver.
  • Chores

    • Updated raw UART kernel driver source to support Linux kernel 6.14 and later.
    • Updated driver source revision and build configuration.

@coderabbitai

coderabbitai Bot commented Apr 14, 2026 •

Copy link
Copy Markdown
πŸ“ Walkthrough

Walkthrough

The pull request removes a termios2 userspace compatibility patch and replaces it with a new kernel 6.14+ compatibility patch that adds conditional compilation for GPIO API and socket interface changes. Build manifest and version files are updated to reference a new upstream source revision.

Changes

Cohort / File(s) Summary
Deprecated Termios2 Patch
buildroot-external/package/generic_raw_uart/0002-generic_raw_uart-termios2.patch
Removed 188-line patch that implemented termios2/glibc 2.42 ioctl emulation (TCGETS2, TCSETS2, TIOCSERGETLSR, TIOCGICOUNT) and module version bump (1.31β†’1.32).
Kernel 6.14+ Compatibility
buildroot-external/package/generic_raw_uart/0002-kernel-6.14+.patch
New 265-line patch adding version-conditional compilation for GPIO function return types (void/int based on LINUX_VERSION_CODE >= 6.17.0), socket API compatibility (LINUX_VERSION_CODE >= 6.19.0), and __match_i2c_client_by_address() parameter constification (LINUX_VERSION_CODE >= 6.14.0). Updates module versions in kernel/hb_rf_eth.c, kernel/hb_rf_usb.c, kernel/hb_rf_usb_2.c, and kernel/generic_raw_uart.c.
Build Configuration
buildroot-external/package/generic_raw_uart/generic_raw_uart.hash, buildroot-external/package/generic_raw_uart/generic_raw_uart.mk
Updated source artifact hash and version reference from c377d91caeb24831... to 803a94746f4528e276... (new GitHub commit). Attribution comment changed from jens-maus/RaspberryMatic to openccu/openccu organization.

Poem

🐰 The patches hop from old to new,
Kernel six-fourteen in view,
Conditionals dance, APIs align,
Termios2 fadesβ€”compatibility's mine!
With hash and version, fresh we go. ✨

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

πŸš₯ Pre-merge checks | βœ… 3
βœ… Passed checks (3 passed)
Check name Status Explanation
Title check βœ… Passed The pull request title accurately summarizes the main changes: bumping generic-raw-uart to version 1.33 and adding kernel 6.14+ compatibility patches.
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
buildroot-external/package/generic_raw_uart/0002-kernel-6.14+.patch (1)

1-18: Split this mailbox into separate numbered patch files.

This package patch embeds three git-format patches in one 0002-...patch file. Buildroot's package-patch guidance expects numbered *.patch files applied in order and recommends one complete change per patch, so separate 0002/0003/0004 files would be easier to review, rebase, and track later. (buildroot.org)

Also applies to: 198-205, 228-236

πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@buildroot-external/package/generic_raw_uart/0002-kernel-6.14`+.patch around
lines 1 - 18, The patch file 0002-kernel-6.14+.patch currently contains three
git-format patches bundled together; split them into three separate, numbered
patch files (e.g., 0002-add-kernel-6.17-compat-hb_rf_eth.patch,
0003-add-kernel-6.17-compat-hb_rf_usb.patch,
0004-add-kernel-6.17-compat-hb_rf_usb_2.patch), each containing exactly one of
the embedded commits (preserve the original commit message, Subject:, and
Signed-off-by:), and update the package's patch list (PATCHES/PATCH_ORDER field
where the package applies patches) to remove the single combined file and
reference the three new files in order so they apply sequentially; ensure the
three target files (kernel/hb_rf_eth.c, kernel/hb_rf_usb.c,
kernel/hb_rf_usb_2.c) are changed only in their respective single-patch files
and that the new filenames and order reflect the intended application sequence.
πŸ€– Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@buildroot-external/package/generic_raw_uart/0002-kernel-6.14`+.patch:
- Around line 1-18: The patch file 0002-kernel-6.14+.patch currently contains
three git-format patches bundled together; split them into three separate,
numbered patch files (e.g., 0002-add-kernel-6.17-compat-hb_rf_eth.patch,
0003-add-kernel-6.17-compat-hb_rf_usb.patch,
0004-add-kernel-6.17-compat-hb_rf_usb_2.patch), each containing exactly one of
the embedded commits (preserve the original commit message, Subject:, and
Signed-off-by:), and update the package's patch list (PATCHES/PATCH_ORDER field
where the package applies patches) to remove the single combined file and
reference the three new files in order so they apply sequentially; ensure the
three target files (kernel/hb_rf_eth.c, kernel/hb_rf_usb.c,
kernel/hb_rf_usb_2.c) are changed only in their respective single-patch files
and that the new filenames and order reflect the intended application sequence.

ℹ️ Review info
βš™οΈ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 77fe6019-b87f-4c79-beb2-4e7583593380

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 9b9304c and dd49a44.

πŸ“’ Files selected for processing (4)
  • buildroot-external/package/generic_raw_uart/0002-generic_raw_uart-termios2.patch
  • buildroot-external/package/generic_raw_uart/0002-kernel-6.14+.patch
  • buildroot-external/package/generic_raw_uart/generic_raw_uart.hash
  • buildroot-external/package/generic_raw_uart/generic_raw_uart.mk
πŸ’€ Files with no reviewable changes (1)
  • buildroot-external/package/generic_raw_uart/0002-generic_raw_uart-termios2.patch

@sairon sairon added the os label Apr 14, 2026

@sairon sairon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks, Jens! πŸ‘

@sairon
sairon merged commit 69b9c25 into home-assistant:dev Apr 14, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants