Skip to content

HID: hid-goodix: Improve handling of HID feature reports

Charles Wang linux-input lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Split the commit into two patches.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2HID: hid-goodix: Return 0 when receiving an empty HID feature packagedrivers/hid/hid-goodix-spi.c+5 -20 replies
2/2HID: hid-goodix: Fix HID get/set feature operation overwritten problemdrivers/hid/hid-goodix-spi.c+6 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] HID: hid-goodix: Improve handling of HID feature reports

The patchset introduces the following two changes:

1) Align with the i2c-hid driver by returning 0 instead of -EINVAL when an empty response is received, ensuring that userspace programs utilizing the hidraw node receive consistent return values.

2) Implement the hid get/set feature report function using a separate address, rather than sharing an address with coordinate reporting, to prevent feature events from being overwritten by coordinate events.

---
Changes in v2:
- Split the commit into two patches.

---
Charles Wang (2):
HID: hid-goodix: Return 0 when receiving an empty HID feature package
HID: hid-goodix: Fix HID get/set feature operation overwritten problem

 drivers/hid/hid-goodix-spi.c | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0