diff options
Diffstat (limited to 'drivers/usb/host/ohci-hub.c')
| -rw-r--r-- | drivers/usb/host/ohci-hub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 6f113596af66..6995ea36f2e8 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c | |||
| @@ -169,7 +169,8 @@ __acquires(ohci->lock) | |||
| 169 | break; | 169 | break; |
| 170 | case OHCI_USB_RESUME: | 170 | case OHCI_USB_RESUME: |
| 171 | /* HCFS changes sometime after INTR_RD */ | 171 | /* HCFS changes sometime after INTR_RD */ |
| 172 | ohci_info (ohci, "wakeup\n"); | 172 | ohci_info(ohci, "%swakeup\n", |
| 173 | autostopped ? "auto-" : ""); | ||
| 173 | break; | 174 | break; |
| 174 | case OHCI_USB_OPER: | 175 | case OHCI_USB_OPER: |
| 175 | /* this can happen after resuming a swsusp snapshot */ | 176 | /* this can happen after resuming a swsusp snapshot */ |
| @@ -422,7 +423,8 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf) | |||
| 422 | ohci->autostop = 0; | 423 | ohci->autostop = 0; |
| 423 | ohci->next_statechange = jiffies + | 424 | ohci->next_statechange = jiffies + |
| 424 | STATECHANGE_DELAY; | 425 | STATECHANGE_DELAY; |
| 425 | } else if (time_after_eq (jiffies, | 426 | } else if (device_may_wakeup(&hcd->self.root_hub->dev) |
| 427 | && time_after_eq(jiffies, | ||
| 426 | ohci->next_statechange) | 428 | ohci->next_statechange) |
| 427 | && !ohci->ed_rm_list | 429 | && !ohci->ed_rm_list |
| 428 | && !(ohci->hc_control & | 430 | && !(ohci->hc_control & |
