]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_hid: {GET,SET} PROTOCOL Support
authorAbdulhadi Mohamed <abdulahhadi2@gmail.com>
Wed, 19 Jul 2017 15:31:10 +0000 (16:31 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 09:46:03 +0000 (12:46 +0300)
commit3b65d5f7b7223d63519d483f5c1ced69c7dd0354
treebb44b3d179e64f55913b23a01fc0ac8dea75c6cd
parent575484a3b65bec5baa2e2c03f49136a5c110331a
usb: gadget: f_hid: {GET,SET} PROTOCOL Support

The current f_hid driver doesn't handle GET_PROCOTOL and
SET_PROCOTOL requests, which are required to operate HID
gadgets in BOOT mode. This patch implements this feature for
devices that have the same implementation for REPORT and BOOT mode
so that these devices are recognized by older BIOSes.

Signed-off-by: Abdulhadi Mohamed <abdulahhadi2@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_hid.c
include/linux/hid.h