]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: Intel-thc-hid: Intel-quicki2c: Support writing output report format
authorEven Xu <even.xu@intel.com>
Tue, 9 Dec 2025 07:52:14 +0000 (15:52 +0800)
committerJiri Kosina <jkosina@suse.com>
Wed, 7 Jan 2026 21:03:47 +0000 (22:03 +0100)
commite149af9ce108d7b9e39d731b93c9fb55fd9e7842
tree03b9e20673ca141d15d59945668f5fcb9a4b886d
parent678cbaa24f09115352be669884f7775ccd28f757
HID: Intel-thc-hid: Intel-quicki2c: Support writing output report format

There are two output formats requested in the HID-over-I2C specification:
- Command format (set feature/set report): encoded command written to
  command register, followed by data written to data register
- Output report format: all data written directly to output register

Current quicki2c_init_write_buf() implementation only supports the
command format.

Extend quicki2c_init_write_buf() to automatically detect the output
format based on the presence of command parameters and prepare the
appropriate output buffer accordingly.

Tested-by: Rui Zhang <rui1.zhang@intel.com>
Signed-off-by: Even Xu <even.xu@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c