diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 15:22:54 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 15:22:54 -0700 |
commit | e17f8af316525c2a795bb314dfcc23201fb51ef4 (patch) | |
tree | 99ea9c56dc9e8fc6485d0513e71aacdb50a19792 /drivers/pci/pci.c | |
parent | a276400d14bb5b98a5db1d87bbee7b1621abe4a1 (diff) | |
parent | 0b84704a2d6fdf55a3dcdd2a1f2ac8b48913c84b (diff) |
Merge branch 'usb-linus' into usb-next
This is to pick up the changes to the option driver, which are needed
for follow-on patches from Johan.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 447e83472c01..77cb54a65cde 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1744,6 +1744,11 @@ int pci_prepare_to_sleep(struct pci_dev *dev) if (target_state == PCI_POWER_ERROR) return -EIO; + /* Some devices mustn't be in D3 during system sleep */ + if (target_state == PCI_D3hot && + (dev->dev_flags & PCI_DEV_FLAGS_NO_D3_DURING_SLEEP)) + return 0; + pci_enable_wake(dev, target_state, device_may_wakeup(&dev->dev)); error = pci_set_power_state(dev, target_state); |