usb: gadget: hid: don't STALL when processing a HID Descriptor request
commitc240d78a8f9b1d4e1d391203f4a698117fae3474
authorSebastian Bauer <mail@sebastianbauer.info>
Thu, 21 Jul 2011 13:40:07 +0000 (21 15:40 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 1 Aug 2011 19:06:47 +0000 (1 22:06 +0300)
tree1ce018de133e5b9c3aacba9465e526d268dfb0b2
parentb61ae3427086ea413aa1fb35feea9e8c4d7c2584
usb: gadget: hid: don't STALL when processing a HID Descriptor request

This is a patch to fix an issue with the HID gadget which, at the moment,
returns STALL on a HID descriptor request. Essentially, the patch changes
the hid gadget such that a request for the HID descriptor is handled by
copying the descriptor into the response buffer, rather than falling
through the default case, in which the request is answered by a STALL.

Signed-off-by: Sebastian Bauer <mail@sebastianbauer.info>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_hid.c