]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: gadget: Do not halt endpoint if active
authorVahram Aharonyan <vahrama@synopsys.com>
Tue, 24 May 2016 05:41:57 +0000 (22:41 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 31 May 2016 08:12:56 +0000 (11:12 +0300)
commitc71227787ee476d4eaed420c11ee4b374f43c6a9
tree7a9f167f9561b925998ee98f348f5b7eb219f84b
parent04135b6d07d460105446ee97f2f2eb7be8d68461
usb: dwc2: gadget: Do not halt endpoint if active

The gadget API function usb_ep_set_halt() expects the gadget to return
-EAGAIN if the ep is active. Add support for this behavior.

Otherwise this may break mass storage protocol if a STALL is attempted
on the endpoint.

Signed-off-by: Vahram Aharonyan <vahrama@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c