usb: dwc2: gadget: add TEST_MODE feature support
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 30 Jan 2015 08:09:28 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:30:44 +0000 (10:30 -0600)
commit9e14d0a566f48d33a9253096963b3b8199e4df57
tree22e316e69be3e2b907a758ee64914782b3a20696
parentc00dd4a6ec20a58ed38be85f8e47efda40625f17
usb: dwc2: gadget: add TEST_MODE feature support

Handle SET_FEATURE TEST_MODE request sent by the host.
Slightly rework FEATURE request handling to allow parsing
other request types than Endpoint.
Also add a debugfs to change test mode value from user space.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c