linux: Parse HID_FIRMWARE_VERSION from uevent for release_number #777

Open
JohnAZoidberg wants to merge 1 commit from FrameworkComputer/hid-firmware-ver into master
JohnAZoidberg commented 2026-03-13 12:30:11 -05:00 (Migrated from github.com)

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.

Link: https://lore.kernel.org/linux-input/20260313175659.268094-1-dhs@frame.work/T/#u

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. Link: https://lore.kernel.org/linux-input/20260313175659.268094-1-dhs@frame.work/T/#u
JohnAZoidberg commented 2026-03-13 13:07:20 -05:00 (Migrated from github.com)
Also added here, which looks like it's going into 7.1 by @superm1: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-7.1/lenovo-v2&id=6ca9029c823b7853e980585e757343e0e84227cd
superm1 (Migrated from github.com) approved these changes 2026-03-13 14:56:00 -05:00
Youw (Migrated from github.com) approved these changes 2026-03-13 15:08:19 -05:00
Youw (Migrated from github.com) left a comment

I don't believe I have a way to properly check/test this, but quick googling shows that this is perfectly fine.
Thanks!

I don't believe I have a way to properly check/test this, but quick googling shows that this is perfectly fine. Thanks!
Youw (Migrated from github.com) reviewed 2026-03-13 15:09:19 -05:00
Youw (Migrated from github.com) commented 2026-03-13 15:09:19 -05:00

if you could add a comment what kernel version this become available (with reference) - that would be great

if you could add a comment what kernel version this become available (with reference) - that would be great
JohnAZoidberg (Migrated from github.com) reviewed 2026-03-13 22:03:16 -05:00
JohnAZoidberg (Migrated from github.com) commented 2026-03-13 22:03:16 -05:00

Yes, we can wait until either Mario or my patch gets merged and I can add a comment

Yes, we can wait until either Mario or my patch gets merged and I can add a comment
Youw (Migrated from github.com) reviewed 2026-03-15 17:10:48 -05:00
Youw (Migrated from github.com) commented 2026-03-15 17:10:48 -05:00

ok, so we wait

ok, so we wait
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'FrameworkComputer/hid-firmware-ver:FrameworkComputer/hid-firmware-ver'
git switch 'FrameworkComputer/hid-firmware-ver'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'FrameworkComputer/hid-firmware-ver'
git switch 'FrameworkComputer/hid-firmware-ver'
git rebase 'master'
git switch 'master'
git merge --ff-only 'FrameworkComputer/hid-firmware-ver'
git switch 'FrameworkComputer/hid-firmware-ver'
git rebase 'master'
git switch 'master'
git merge --no-ff 'FrameworkComputer/hid-firmware-ver'
git switch 'master'
git merge --squash 'FrameworkComputer/hid-firmware-ver'
git switch 'master'
git merge --ff-only 'FrameworkComputer/hid-firmware-ver'
git switch 'master'
git merge 'FrameworkComputer/hid-firmware-ver'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi!777
No description provided.