linux/drivers/hid/surface-hid
Maximilian Luz 2b2bcc76e2 HID: surface-hid: Fix get-report request
Getting a report (e.g. feature report) from a device requires us to send
a request indicating which report we want to retrieve and then waiting
for the corresponding response containing that report. We already
provide the response structure to the request call, but the request
isn't marked as a request that expects a response. Thus the request
returns before we receive the response and the response buffer indicates
a zero length response due to that.

This essentially means that the get-report calls are broken and will
always indicate that a report of length zero has been read.

Fix this by appropriately marking the request.

Fixes: b05ff1002a ("HID: Add support for Surface Aggregator Module HID transport")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-06-15 10:54:51 +02:00
..
Kconfig
Makefile
surface_hid_core.c HID: surface-hid: Fix integer endian conversion 2021-05-05 14:31:55 +02:00
surface_hid_core.h
surface_hid.c HID: surface-hid: Fix get-report request 2021-06-15 10:54:51 +02:00
surface_kbd.c