usb: dwc2: Disable all EP's on disconnect
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Wed, 19 Sep 2018 14:13:52 +0000 (18:13 +0400)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:17 +0000 (00:08 +0100)
commit97b900a31693e6aeccc8b5c6bd1665ebed808eb5
treea1ae718e46cb5b8b6cf09ad6997d9f3d5752690a
parenteafa122a48ddf892818a3666082afd716b1e5311
usb: dwc2: Disable all EP's on disconnect

commit dccf1bad4be7eaa096c1f3697bd37883f9a08ecb upstream.

Disabling all EP's allow to reset EP's to initial state.
On disconnect disable all EP's instead of just killing
all requests. Because of some platform didn't catch
disconnect event, same stuff added to
dwc2_hsotg_core_init_disconnected() function when USB
reset detected on the bus.

Changed from version 1:
Changed lock acquire flow in dwc2_hsotg_ep_disable()
function.

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c