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:11:53 +0000 (20:11 -0700)
commit0d8b12fce9dc5fcb05adeae1e39924b746a68685
treea59d314a5eaabd145fa9aa507e89ecb6c1cbed1a
parent2e739000204f883d8708d2855d57a051c9da66db
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