[RFC PATCH 0/2] Handling of non-numbered feature reports by hidraw

From: Andrey Smirnov
Date: Mon Dec 05 2022 - 16:05:22 EST



Hi everyone,

I'm working on a firmware of a device that exposes a HID interface via
USB and/or BLE and uses, among other things, non-numbered feature
reports. Included in this series are two paches I had to create in
order for hidraw devices created for aforementioned subsystems to
behave in the same way when exerciesd by the same test tool.

I don't know if the patches are acceptable as-is WRT to not breaking
existing userspace, hence the RFC tag.

Andrey Smirnov (2):
HID: uhid: Don't send the report ID if it's zero
HID: usbhid: Don't include report ID zero into returned data

drivers/hid/uhid.c | 15 ++++++++++++---
drivers/hid/usbhid/hid-core.c | 14 --------------
2 files changed, 12 insertions(+), 17 deletions(-)

--
2.34.1