diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-29 07:22:08 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-01-14 11:55:43 -0500 |
commit | 0f953bf6b4efa0daddb7c418130a9bd3ee97f7ed (patch) | |
tree | 4a24901b0ff701e80787e39d87603bdd4b762876 /drivers/pci/pci.c | |
parent | b6e335aeeb114dccb07eaa09e8b62ff9510cf745 (diff) |
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.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index bf7ad2c09955..b714d787bddd 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1308,8 +1308,8 @@ bool pci_check_pme_status(struct pci_dev *dev) | |||
1308 | static int pci_pme_wakeup(struct pci_dev *dev, void *ign) | 1308 | static int pci_pme_wakeup(struct pci_dev *dev, void *ign) |
1309 | { | 1309 | { |
1310 | if (pci_check_pme_status(dev)) { | 1310 | if (pci_check_pme_status(dev)) { |
1311 | pm_request_resume(&dev->dev); | ||
1312 | pci_wakeup_event(dev); | 1311 | pci_wakeup_event(dev); |
1312 | pm_request_resume(&dev->dev); | ||
1313 | } | 1313 | } |
1314 | return 0; | 1314 | return 0; |
1315 | } | 1315 | } |