Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294723
b: refs/heads/master
c: 5b415f1
h: refs/heads/master
i:
  294721: ff5077d
  294719: 9a29af6
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Feb 17, 2012
1 parent ab43870 commit 1646be4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09cedbef4428580a09b342a7a92a262cfb5cbf25
refs/heads/master: 5b415f1e79e0c09366f26e3eabe751642059285a
10 changes: 10 additions & 0 deletions trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,16 @@ static void pci_device_shutdown(struct device *dev)
drv->shutdown(pci_dev);
pci_msi_shutdown(pci_dev);
pci_msix_shutdown(pci_dev);

/*
* Devices may be enabled to wake up by runtime PM, but they need not
* be supposed to wake up the system from its "power off" state (e.g.
* ACPI S5). Therefore disable wakeup for all devices that aren't
* supposed to wake up the system at this point. The state argument
* will be ignored by pci_enable_wake().
*/
if (!device_may_wakeup(dev))
pci_enable_wake(pci_dev, PCI_UNKNOWN, false);
}

#ifdef CONFIG_PM
Expand Down

0 comments on commit 1646be4

Please sign in to comment.