lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241031123113.18843-1-charles.goodix@gmail.com>
Date: Thu, 31 Oct 2024 20:31:11 +0800
From: Charles Wang <charles.goodix@...il.com>
To: dmitry.torokhov@...il.com,
	hbarnor@...omium.org
Cc: jikos@...nel.org,
	bentiss@...nel.org,
	dianders@...omium.org,
	dan.carpenter@...aro.org,
	linux-input@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Charles Wang <charles.goodix@...il.com>
Subject: [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.

Signed-off-by: Charles Wang <charles.goodix@...il.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ