linux-stable/drivers/hid/i2c-hid
Dmitry Torokhov b5b2858187 HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports
[ Upstream commit a5e5e03e94 ]

Internally kernel prepends all report buffers, for both numbered and
unnumbered reports, with report ID, therefore to properly handle unnumbered
reports we should prepend it ourselves.

For the same reason we should skip the first byte of the buffer when
calling i2c_hid_set_or_send_report() which then will take care of properly
formatting the transfer buffer based on its separate report ID argument
along with report payload.

[jkosina@suse.cz: finalize trimmed sentence in changelog as spotted by Benjamin]
Fixes: 9b5a9ae885 ("HID: i2c-hid: implement ll_driver transport-layer callbacks")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:31 +02:00
..
i2c-hid-acpi.c HID: i2c-hid-of: Expose the touchscreen-inverted properties 2022-01-27 11:04:41 +01:00
i2c-hid-core.c HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports 2022-04-08 14:23:31 +02:00
i2c-hid-dmi-quirks.c HID: i2c-hid: add Vero K147 to descriptor override 2020-11-27 16:17:49 +01:00
i2c-hid-of-goodix.c HID: i2c-hid: goodix: Fix a lockdep splat 2022-02-23 12:03:03 +01:00
i2c-hid-of.c HID: i2c-hid-of: Expose the touchscreen-inverted properties 2022-01-27 11:04:41 +01:00
i2c-hid.h HID: i2c-hid-of: Expose the touchscreen-inverted properties 2022-01-27 11:04:41 +01:00
Kconfig HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core 2021-01-18 16:56:22 +01:00
Makefile HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core 2021-01-18 16:56:22 +01:00