Repository navigation
linux: Parse HID_FIRMWARE_VERSION from uevent for release_number - #847
Merged
Merged
Conversation
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>
Youw
force-pushed
the
linux-firmware-version
branch
from
November 12, 2026 23:02
d7f4f5e to
e305af5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parse HID_FIRMWARE_VERSION from the Linux uevent to populate release_number, retaining the existing USB bcdDevice override and zero fallback when the property is absent.
Carries forward Daniel Schaefer's original patch, preserving the commit author, author date, and exact original commit message. The source comment now documents availability since Linux 7.1, when supplied by the kernel driver, with a reference to the introducing kernel commit.
Validation: WSL Linux CMake/Ninja build passed with both backends, tests, and hidtest enabled. CTest: 27 passed; 4 virtual-device tests skipped because their required devices were unavailable. Diff whitespace check passed.
Supersedes #777 and addresses the kernel-version comment request.
Closes: #777
Assisted-by: Codex:GPT-6