aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hcd-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index edf4300a3f7a..5cf6d5f9acbd 100644
--- a/drivers/usb/core/hcd-pci.c
+++ b/drivers/usb/core/hcd-pci.c
@@ -207,7 +207,8 @@ int usb_hcd_pci_suspend (struct pci_dev *dev, pm_message_t message)
207 * We must ignore the FREEZE vs SUSPEND distinction here, because 207 * We must ignore the FREEZE vs SUSPEND distinction here, because
208 * otherwise the swsusp will save (and restore) garbage state. 208 * otherwise the swsusp will save (and restore) garbage state.
209 */ 209 */
210 if (hcd->self.root_hub->dev.power.power_state.event == PM_EVENT_ON) 210 if (!(hcd->state == HC_STATE_SUSPENDED ||
211 hcd->state == HC_STATE_HALT))
211 return -EBUSY; 212 return -EBUSY;
212 213
213 if (hcd->driver->suspend) { 214 if (hcd->driver->suspend) {