Skip to content

Add output report support for QuickI2C driver

Even Xu 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 Latest4 patches 1 replyIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fix a return error code check bug in [patch 4/4]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4HID: Intel-thc-hid: Intel-quicki2c: Use size_t for all length variablesdrivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h+28 -330 replies
2/4HID: Intel-thc-hid: Intel-quicki2c: Use put_unaligned_le16 for __le16 writesdrivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c+1 -30 replies
3/4HID: Intel-thc-hid: Intel-quicki2c: Support writing output report formatdrivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c+11 -60 replies
4/4HID: Intel-thc-hid: Intel-quicki2c: Add output report supportdrivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h+28 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRui ZhangIlpo Järvinen
1/4
2/4
3/4T-b R-b
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Add output report support for QuickI2C driver

This patch serial adds support for HID output reports in the Quicki2c driver by implementing the output_report callback in the HID low-level driver interface.

This change introduces:
- Refine QuickI2C driver to use size_t for all length-related variables
- Enhance the quicki2c_init_write_buf() function by adding support for writing to the output register based on the content being written
- Add quicki2c_hid_output_report() and quicki2c_output_report() function that processe the HID output reports request

This enables proper communication with HID devices that require output report functionality, such as setting device configuration or updating device firmware.

Change log:
v2:
- Fix a return error code check bug in [patch 4/4]

Even Xu (4):
HID: Intel-thc-hid: Intel-quicki2c: Use size_t for all length
variables
HID: Intel-thc-hid: Intel-quicki2c: Use put_unaligned_le16 for __le16
writes
HID: Intel-thc-hid: Intel-quicki2c: Support writing output report
format
HID: Intel-thc-hid: Intel-quicki2c: Add output report support

 .../intel-quicki2c/quicki2c-dev.h             |  2 +-
 .../intel-quicki2c/quicki2c-hid.c             |  8 ++
 .../intel-quicki2c/quicki2c-protocol.c        | 95 +++++++++++--------
 .../intel-quicki2c/quicki2c-protocol.h        |  5 +-
 4 files changed, 68 insertions(+), 42 deletions(-)
Signature · 1 line
2.40.1