PCI/PM: Report wakeup events before resuming devices
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 29 Dec 2010 12:22:08 +0000 (13:22 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 14 Jan 2011 16:55:43 +0000 (08:55 -0800)
commit0f953bf6b4efa0daddb7c418130a9bd3ee97f7ed
tree4a24901b0ff701e80787e39d87603bdd4b762876
parentb6e335aeeb114dccb07eaa09e8b62ff9510cf745
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>
drivers/pci/pci-acpi.c
drivers/pci/pci.c
drivers/pci/pcie/pme.c