|
@@ -2262,7 +2262,8 @@ int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)
|
|
hcd->state = HC_STATE_SUSPENDED;
|
|
hcd->state = HC_STATE_SUSPENDED;
|
|
|
|
|
|
if (!PMSG_IS_AUTO(msg))
|
|
if (!PMSG_IS_AUTO(msg))
|
|
- usb_phy_roothub_power_off(hcd->phy_roothub);
|
|
|
|
|
|
+ usb_phy_roothub_suspend(hcd->self.sysdev,
|
|
|
|
+ hcd->phy_roothub);
|
|
|
|
|
|
/* Did we race with a root-hub wakeup event? */
|
|
/* Did we race with a root-hub wakeup event? */
|
|
if (rhdev->do_remote_wakeup) {
|
|
if (rhdev->do_remote_wakeup) {
|
|
@@ -2302,7 +2303,8 @@ int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
|
|
}
|
|
}
|
|
|
|
|
|
if (!PMSG_IS_AUTO(msg)) {
|
|
if (!PMSG_IS_AUTO(msg)) {
|
|
- status = usb_phy_roothub_power_on(hcd->phy_roothub);
|
|
|
|
|
|
+ status = usb_phy_roothub_resume(hcd->self.sysdev,
|
|
|
|
+ hcd->phy_roothub);
|
|
if (status)
|
|
if (status)
|
|
return status;
|
|
return status;
|
|
}
|
|
}
|
|
@@ -2344,7 +2346,7 @@ int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
hcd->state = old_state;
|
|
hcd->state = old_state;
|
|
- usb_phy_roothub_power_off(hcd->phy_roothub);
|
|
|
|
|
|
+ usb_phy_roothub_suspend(hcd->self.sysdev, hcd->phy_roothub);
|
|
dev_dbg(&rhdev->dev, "bus %s fail, err %d\n",
|
|
dev_dbg(&rhdev->dev, "bus %s fail, err %d\n",
|
|
"resume", status);
|
|
"resume", status);
|
|
if (status != -ESHUTDOWN)
|
|
if (status != -ESHUTDOWN)
|