|
@@ -1955,7 +1955,6 @@ int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
|
|
|
|
|
|
dev_dbg(&rhdev->dev, "usb %s%s\n",
|
|
|
(msg.event & PM_EVENT_AUTO ? "auto-" : ""), "resume");
|
|
|
- clear_bit(HCD_FLAG_WAKEUP_PENDING, &hcd->flags);
|
|
|
if (!hcd->driver->bus_resume)
|
|
|
return -ENOENT;
|
|
|
if (hcd->state == HC_STATE_RUNNING)
|
|
@@ -1963,6 +1962,7 @@ int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
|
|
|
|
|
|
hcd->state = HC_STATE_RESUMING;
|
|
|
status = hcd->driver->bus_resume(hcd);
|
|
|
+ clear_bit(HCD_FLAG_WAKEUP_PENDING, &hcd->flags);
|
|
|
if (status == 0) {
|
|
|
/* TRSMRCY = 10 msec */
|
|
|
msleep(10);
|