diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /drivers/usb/core/hcd-pci.c | |
parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) |
Merge branch 'linus'
Diffstat (limited to 'drivers/usb/core/hcd-pci.c')
-rw-r--r-- | drivers/usb/core/hcd-pci.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index 29b5b2a6e183..e0afb5ad29e5 100644 --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c | |||
@@ -264,14 +264,19 @@ int usb_hcd_pci_suspend (struct pci_dev *dev, pm_message_t message) | |||
264 | */ | 264 | */ |
265 | retval = pci_set_power_state (dev, PCI_D3hot); | 265 | retval = pci_set_power_state (dev, PCI_D3hot); |
266 | if (retval == 0) { | 266 | if (retval == 0) { |
267 | dev_dbg (hcd->self.controller, "--> PCI D3\n"); | 267 | int wake = device_can_wakeup(&hcd->self.root_hub->dev); |
268 | |||
269 | wake = wake && device_may_wakeup(hcd->self.controller); | ||
270 | |||
271 | dev_dbg (hcd->self.controller, "--> PCI D3%s\n", | ||
272 | wake ? "/wakeup" : ""); | ||
268 | 273 | ||
269 | /* Ignore these return values. We rely on pci code to | 274 | /* Ignore these return values. We rely on pci code to |
270 | * reject requests the hardware can't implement, rather | 275 | * reject requests the hardware can't implement, rather |
271 | * than coding the same thing. | 276 | * than coding the same thing. |
272 | */ | 277 | */ |
273 | (void) pci_enable_wake (dev, PCI_D3hot, hcd->remote_wakeup); | 278 | (void) pci_enable_wake (dev, PCI_D3hot, wake); |
274 | (void) pci_enable_wake (dev, PCI_D3cold, hcd->remote_wakeup); | 279 | (void) pci_enable_wake (dev, PCI_D3cold, wake); |
275 | } else { | 280 | } else { |
276 | dev_dbg (&dev->dev, "PCI D3 suspend fail, %d\n", | 281 | dev_dbg (&dev->dev, "PCI D3 suspend fail, %d\n", |
277 | retval); | 282 | retval); |