Skip to content

linux: Parse HID_FIRMWARE_VERSION from uevent for release_number - #844

Closed
Youw wants to merge 2 commits into
masterfrom
hid-firmware-version
Closed

Youw wants to merge 2 commits into
masterfrom
hid-firmware-version

Conversation

@Youw

@Youw Youw commented Nov 8, 2026

Copy link
Copy Markdown
Member

Carries #777 forward, because its head branch does not allow maintainer edits.

The first commit is the original #777 commit by Daniel Schaefer, unchanged (same SHA, author and sign-off). It parses the HID_FIRMWARE_VERSION uevent property to fill release_number for HID devices on any bus. For USB devices the existing bcdDevice sysfs lookup still takes precedence.

The second commit applies the open review suggestion from #777. It adds a source comment that names Linux v7.1 as the first kernel with the property and links the commit that introduced it, torvalds/linux@6ca9029.

Replaces: #777

Assisted-by: claude-code:claude-opus-5-5

JohnAZoidberg and others added 2 commits March 14, 2026 01:58
Parse the HID_FIRMWARE_VERSION uevent property to populate release_number
for all HID devices. This provides device version information for I2C,
Bluetooth, SPI, and virtual HID devices.

For USB devices, the existing bcdDevice lookup from sysfs still takes
precedence, maintaining backward compatibility.

The HID_FIRMWARE_VERSION property is being added to the Linux kernel
(patch series submitted to linux-input@vger.kernel.org). On kernels
without this property, release_number will remain 0 for non-USB devices,
preserving existing behavior.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Applies the review suggestion from #777: reference the Linux v7.1
commit that introduced the HID_FIRMWARE_VERSION uevent property.

Assisted-by: claude-code:claude-opus-5-5
@Youw

Youw commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Squash-merging this one would lose the original authorship. I'd rather keep that one.

@Youw Youw closed this Nov 8, 2026
@Youw
Youw deleted the hid-firmware-version branch November 8, 2026 22:19
@mcuee mcuee added the hidraw Related to Linux/hidraw backend label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hidraw Related to Linux/hidraw backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants