HID: Use wVersionID for device version
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | HID: i2c-hid: Use wVersionID for device versiondrivers/ | +1 | 0 replies | |
| 2/4 | HID: goodix-spi: Use version_id for device versiondrivers/ | +1 | 0 replies | |
| 3/4 | HID: surface: Use device version instead of HID spec versiondrivers/ | +1 | 0 replies | |
| 4/4 | HID: core: Export device version via HID_FIRMWARE_VERSION ueventdrivers/ | +3 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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
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