Skip to content

RFC Extend functionality for GET_REPORT

Suniel Mahesh linux-usb lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 0 repliesNew
  2. v2 RFC2 patches 0 repliesSuperseded
  3. v1 RFC2 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- patch 2/2 got changed, the mapping of report type.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: gadget: f_hid: Extend functionality for GET_REPORT modedrivers/usb/gadget/function/f_hid.c include/uapi/linux/usb/g_hid.h+192 -20 replies
2/2HID: ghid: add example program for GET_REPORTsamples/Kconfig samples/Makefile samples/ghid/Makefile +1 more+149 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC v3 0/2] Extend functionality for GET_REPORT

This series does the following:

patch 1/2 extends functionality for GET_REPORT.

The current kernel implementation for GET_REPORT is that the kernel sends back a zero filled report (of length == report_length), when the Host request's a particular report from the device/gadget.

This changeset extends functionality for GET_REPORT by sending a particular report based on report type and report number.

patch 2/2 adds a test application to test the extended functionality.

please review and share your thoughts.

version 2 patches:
https://lore.kernel.org/lkml/[email protected]/

version 1 patches:
https://lore.kernel.org/lkml/[email protected]/

Suniel Mahesh (2):
usb: gadget: f_hid: Extend functionality for GET_REPORT mode
HID: ghid: add example program for GET_REPORT
---
Changes for v3:
- patch 2/2 got changed, the mapping of report type.

Changes for v2:
- patch 2/2 got changed.

 drivers/usb/gadget/function/f_hid.c  | 184 ++++++++++++++++++++++++++-
 include/{ => uapi}/linux/usb/g_hid.h |  10 ++
 samples/Kconfig                      |  10 ++
 samples/Makefile                     |   1 +
 samples/ghid/Makefile                |   4 +
 samples/ghid/test-hid.c              | 134 +++++++++++++++++++
 6 files changed, 341 insertions(+), 2 deletions(-)
 rename include/{ => uapi}/linux/usb/g_hid.h (72%)
 create mode 100644 samples/ghid/Makefile
 create mode 100644 samples/ghid/test-hid.c
Signature · 1 line
2.25.1