When usb device or host reconnect quickly, the dwc3 controller still
in the state of resume and can not resume again after receive connect
notify. So we need to suspend dwc3 controller immediately when
receive the notify of disconnect. This patch fix the bug "set device
address fail" when resume or quick reconnect.
Change-Id: Iaef6363cdece497f8d7be745017674e119fe3529
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
phy_power_off(dwc->usb3_generic_phy);
}
- pm_runtime_put_sync(dwc->dev);
+ pm_runtime_put_sync_suspend(dwc->dev);
rockchip->connected = false;
dev_info(rockchip->dev, "USB unconnected\n");