usb: dwc3: gadget: clear stall when disabling endpoint
authorFelipe Balbi <balbi@ti.com>
Wed, 16 Apr 2014 15:30:33 +0000 (10:30 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Apr 2014 15:30:33 +0000 (10:30 -0500)
commit687ef9817df7ed960d14575b9033dde3d04631fe
tree376c33075dc68bd6327fbed471b627c78c44d34f
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
usb: dwc3: gadget: clear stall when disabling endpoint

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.

Cc: <stable@vger.kernel.org> # v3.4+
Reported-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c