linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] HID: hid-goodix: Improve handling of HID feature reports
@ 2024-10-31 12:31 Charles Wang
  2024-10-31 12:31 ` [PATCH v2 1/2] HID: hid-goodix: Return 0 when receiving an empty HID feature package Charles Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Charles Wang @ 2024-10-31 12:31 UTC (permalink / raw)
  To: dmitry.torokhov, hbarnor
  Cc: jikos, bentiss, dianders, dan.carpenter, linux-input,
	linux-kernel, Charles Wang

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.

Signed-off-by: Charles Wang <charles.goodix@gmail.com>
---
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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-06 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 12:31 [PATCH v2 0/2] HID: hid-goodix: Improve handling of HID feature reports Charles Wang
2024-10-31 12:31 ` [PATCH v2 1/2] HID: hid-goodix: Return 0 when receiving an empty HID feature package Charles Wang
2024-10-31 12:31 ` [PATCH v2 2/2] HID: hid-goodix: Fix HID get/set feature operation overwritten problem Charles Wang
2024-11-06 14:09 ` [PATCH v2 0/2] HID: hid-goodix: Improve handling of HID feature reports Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).