diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-12-17 15:10:05 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:13:07 -0500 |
commit | eb9c39d031bbcfd4005bd7e0337c3fd3909c1bf7 (patch) | |
tree | 1549b3fb7eb08296b7f7fe72582d7067098059db /drivers/pci/pci.h | |
parent | 876e501ab25dcd683574a5d3d56d8fe450083ed6 (diff) |
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/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index d1e92d83aa06..65deed8bfc06 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -45,6 +45,7 @@ struct pci_platform_pm_ops { | |||
45 | 45 | ||
46 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); | 46 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); |
47 | extern void pci_pm_init(struct pci_dev *dev); | 47 | extern void pci_pm_init(struct pci_dev *dev); |
48 | extern void platform_pci_wakeup_init(struct pci_dev *dev); | ||
48 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); | 49 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); |
49 | 50 | ||
50 | extern int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); | 51 | extern int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); |