usb: dwc3: gadget: clear stall when disabling endpoint
authorFelipe Balbi <balbi@ti.com>
Wed, 16 Apr 2014 15:30:33 +0000 (10:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:01:30 +0000 (20:01 -0700)
commit4cbd8a25f93283765cc12dc7f8914ca33cb49567
tree6713f193f1ae15cc196604df5e66d2ce9ff39d33
parenta7f0226e50ed22a2a62f875f6b3766e0f108a7a9
usb: dwc3: gadget: clear stall when disabling endpoint

commit 687ef9817df7ed960d14575b9033dde3d04631fe upstream.

so it seems like DWC3 IP doesn't clear stalls
automatically when we disable an endpoint, because
of that, we _must_ make sure stalls are cleared
before clearing the proper bit in DALEPENA register.

Reported-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c