Skip to content

HID: amd_sfh: operating-mode telemetry sysfs and report fixes

Basavaraj Natikar linux-input stable 2 versions – Applied

Status from this message: Applied to hid.git#for-7.4/amd_sfh, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Add a fix for feature reports being sent to HID core as input reports.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4HID: amd_sfh: Move sysfs attributes to a separate filedrivers/hid/amd-sfh-hid/Makefile drivers/hid/amd-sfh-hid/amd_sfh_pcie.c drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c +1 more+95 -530 replies
2/4HID: amd_sfh: Add operating-mode telemetry sysfs attributesDocumentation/ABI/testing/sysfs-driver-amd-sfh MAINTAINERS drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c+123 -10 replies
3/4HID: amd_sfh: Remove unsupported motion-state field from accelerometer reportdrivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h+0 -90 replies
4/4HID: amd_sfh: Use report type from request nodedrivers/hid/amd-sfh-hid/amd_sfh_client.c+2 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH -next v2 0/4] HID: amd_sfh: operating-mode telemetry sysfs and report fixes

This series extends the amd-sfh sysfs interface with operating-mode telemetry and fixes two HID report handling issues.

Patch 1 moves the existing sysfs attribute handling into a dedicated file in preparation for adding more attributes (no functional change).

Patch 2 exposes the operating-mode telemetry reported by the SRA sensor (in-bag, out-of-bag, on-table, hinge angle, lid status and device mode) as read-only sysfs attributes.

Patch 3 removes an unsupported motion-state field from the accelerometer HID report descriptor that the hardware never populates, which caused hid-core to drop every accelerometer input report.

Patch 4 passes the requested report type to HID core. This prevents ALS feature reports from being parsed as input reports and fixes the "Event data for report 4 was too short (18 vs 14)" warning.

Changes in v2:
- Add a fix for feature reports being sent to HID core as input reports.

Basavaraj Natikar (4):
HID: amd_sfh: Move sysfs attributes to a separate file
HID: amd_sfh: Add operating-mode telemetry sysfs attributes
HID: amd_sfh: Remove unsupported motion-state field from accelerometer
report
HID: amd_sfh: Use report type from request node

 .../ABI/testing/sysfs-driver-amd-sfh          |  60 ++++++++
 MAINTAINERS                                   |   1 +
 drivers/hid/amd-sfh-hid/Makefile              |   1 +
 drivers/hid/amd-sfh-hid/amd_sfh_client.c      |   4 +-
 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c        |  55 +------
 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c       | 134 ++++++++++++++++++
 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.h       |  19 +++
 .../hid_descriptor/amd_sfh_hid_desc.h         |   2 -
 .../hid_descriptor/amd_sfh_hid_report_desc.h  |   7 -
 9 files changed, 219 insertions(+), 64 deletions(-)
 create mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c
 create mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.h
Signature · 1 line
2.34.1