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)
commitb3c4ec71ec413c2e5bfb028bdf1737af07f1fde0
treebb44b3d179e64f55913b23a01fc0ac8dea75c6cd
parent4a10a937ed20cb55066c4ac9bad4b5b7bbf8ccb5
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