usb: dwc3: gadget: Properly handle ClearFeature(halt)
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 5 Mar 2020 21:23:55 +0000 (13:23 -0800)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 07:58:52 +0000 (10:58 +0300)
commitcb11ea56f37a36288cdd0a4799a983ee3aa437dd
tree0a0447ef87845f79c5607e39a1f3d28f87582598
parent3428b96f2f0d7a2c18d95478657d4aba5a0a331a
usb: dwc3: gadget: Properly handle ClearFeature(halt)

DWC3 must not issue CLEAR_STALL command to control endpoints. The
controller automatically clears the STALL when it receives the SETUP
token. Also, when the driver receives ClearFeature(halt_ep), DWC3 must
stop any active transfer from the endpoint and give back all the
requests to the function drivers.

Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c