summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2008-12-17 21:10:05 +0100
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 20:13:07 +0100
commiteb9c39d031bbcfd4005bd7e0337c3fd3909c1bf7 (patch)
tree1549b3fb7eb08296b7f7fe72582d7067098059db /drivers/pci/probe.c
parentPCI: factor pci_bus_add_child() from pci_bus_add_devices() (diff)
downloadlinux-eb9c39d031bbcfd4005bd7e0337c3fd3909c1bf7.tar.xz
linux-eb9c39d031bbcfd4005bd7e0337c3fd3909c1bf7.zip
PCI: set device wakeup capable flag if platform support is present
When PCI devices are initialized, we check whether they support PCI PM caps and set the device can_wakeup flag if so. However, some devices may have platform provided wakeup events rather than PCI PME signals, so we need to set can_wakeup in that case too. Doing so should allow wakeups from many more devices, especially on cost constrained systems. Reported-by: Alan Stern <stern@rowland.harvard.edu> Tested-by: Joseph Chan <JosephChan@via.com.tw> Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 2ee00962734b..303644614eea 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -965,6 +965,7 @@ static void pci_init_capabilities(struct pci_dev *dev)
/* Power Management */
pci_pm_init(dev);
+ platform_pci_wakeup_init(dev);
/* Vital Product Data */
pci_vpd_pci22_init(dev);