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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:33:15 +0000 (10:33 +0300)
commitdccf1bad4be7eaa096c1f3697bd37883f9a08ecb
treeecfada5f5c892d72bd17b219648fa05ad5de5f3a
parent4c19cc14064d99ef0a20fb5ba0d45c94dbedb13c
usb: dwc2: Disable all EP's on disconnect

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