Skip to content

HID: Use wVersionID for device version

Daniel Schaefer linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4HID: i2c-hid: Use wVersionID for device versiondrivers/hid/i2c-hid/i2c-hid-core.c+1 -10 replies
2/4HID: goodix-spi: Use version_id for device versiondrivers/hid/hid-goodix-spi.c+1 -10 replies
3/4HID: surface: Use device version instead of HID spec versiondrivers/hid/surface-hid/surface_hid_core.c+1 -10 replies
4/4HID: core: Export device version via HID_FIRMWARE_VERSION ueventdrivers/hid/hid-core.c+3 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] HID: Use wVersionID for device version

The motivation for this patch series is that the touchpads on Framework Laptops expose their firmware version in the I2C HID device descriptor. So the vendor's windows tool uses that to check the firmware version, but Linux does not expose it to userspace at all.
We have added vendor specific HID reports to newer firmware for reading the firmware version -that means however, the old firmware still cannot reports its version to Linux at all.

I found that Mario has been planning to add a way for the kernel to report HID firmware versions to userspace and added support to fwupd. There's a kernel patch in flight that also exports this:
https://lwn.net/ml/all/[email protected]/

While adding this for I2C HID devices, I noticed that the goodix-spi and surface drivers also expose the HID protocol version, which is not very useful. I do not have hardware to test those

The i2c-hid and core changes were tested on Framework Laptop 16. I also added support to hidapi for reading the new uevent, if not provided by USB already: https://github.com/libusb/hidapi/pull/777

Cc Jiri Kosina <[email protected]>
Cc Benjamin Tissoires <[email protected]>
Cc Mario Limonciello <[email protected]>
Cc Maximilian Luz <[email protected]>
Cc Richard Hughes <[email protected]>
Cc Charles Wang <[email protected]>

Daniel Schaefer (4):
HID: i2c-hid: Use wVersionID for device version
HID: goodix-spi: Use version_id for device version
HID: surface: Use device version instead of HID spec version
HID: core: Export device version via HID_FIRMWARE_VERSION uevent

 drivers/hid/hid-core.c                     | 3 +++
 drivers/hid/hid-goodix-spi.c               | 2 +-
 drivers/hid/i2c-hid/i2c-hid-core.c         | 2 +-
 drivers/hid/surface-hid/surface_hid_core.c | 2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)
Signature · 1 line
2.52.0