usb: dwc2: host: disconnect hcd prior stopping it
authorGregory Herrero <gregory.herrero@intel.com>
Tue, 22 Sep 2015 13:16:46 +0000 (15:16 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:17 +0000 (12:40 -0500)
commit091473ad9b402f9e1b08a68a78b54e0d3c9affb6
tree0d67275a50ed063d9bf1fa748f51811a05f1e551
parent08c4ffc24087d1949948002abdbac0d1e71ade5d
usb: dwc2: host: disconnect hcd prior stopping it

In case controller is asked to stop while devices are connected,
disconnect all devices and clean up before stopping.

Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd.c