usb: dwc_otg: double check disconnect state when otg state
authorlyz <lyz@rock-chips.com>
Mon, 19 Jan 2015 11:17:37 +0000 (19:17 +0800)
committerlyz <lyz@rock-chips.com>
Fri, 23 Jan 2015 09:08:18 +0000 (17:08 +0800)
commitf38ab909f02ed1b9bae7f70d195ec6f14e076acf
treea534a24cebea447a80d3e9b9955966f69b3ed69d
parent0a62774761da25dbf4ac20107f755d2e8af6e003
usb: dwc_otg: double check disconnect state when otg state
changed

When otg stop host mode and before change to device mode hcd_stop
function should do something to double check all usb device is
disconnect because the disconnect interrupt might be lost.
1.kill all active urbs attached to this hcd
2.set hcd->flags to notify usb core to disconnect all usb devices

Signed-off-by: lyz <lyz@rock-chips.com>
drivers/usb/dwc_otg_310/dwc_otg_hcd.c