diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-29 13:22:08 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-01-14 17:55:43 +0100 |
commit | 0f953bf6b4efa0daddb7c418130a9bd3ee97f7ed (patch) | |
tree | 4a24901b0ff701e80787e39d87603bdd4b762876 /drivers/pci/pci-acpi.c | |
parent | PCI/PM: Use pm_wakeup_event() directly for reporting wakeup events (diff) | |
download | linux-0f953bf6b4efa0daddb7c418130a9bd3ee97f7ed.tar.xz linux-0f953bf6b4efa0daddb7c418130a9bd3ee97f7ed.zip |
PCI/PM: Report wakeup events before resuming devices
Make wakeup events be reported by the PCI subsystem before attempting to
resume devices or queuing up runtime resume requests for them, because
wakeup events should be reported as soon as they have been detected.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r-- | drivers/pci/pci-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index d7ea699b8ddc..6fe0772e0e7d 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -46,9 +46,9 @@ static void pci_acpi_wake_dev(acpi_handle handle, u32 event, void *context) struct pci_dev *pci_dev = context; if (event == ACPI_NOTIFY_DEVICE_WAKE && pci_dev) { + pci_wakeup_event(pci_dev); pci_check_pme_status(pci_dev); pm_runtime_resume(&pci_dev->dev); - pci_wakeup_event(pci_dev); if (pci_dev->subordinate) pci_pme_wakeup_bus(pci_dev->subordinate); } |