]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ACPI: Always resume devices on ACPI wakeup notifications
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Mar 2013 11:07:29 +0000 (11:07 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Apr 2013 21:49:52 +0000 (15:49 -0600)
commitbb90fbc41ca2fac67a9cf28ea7399182269b3346
tree5fa7bfd81fe811a6ab2f37d0d37593ab71fa68ee
parent74f8fdf2da55a2e767b2578f242915dfbc4da49b
PCI/ACPI: Always resume devices on ACPI wakeup notifications

It turns out that the _Lxx control methods provided by some BIOSes
clear the PME Status bit of PCI devices they handle, which means that
pci_acpi_wake_dev() cannot really use that bit to check whether or
not the device has signalled wakeup.

One symptom of the problem is, for example, that when an affected PCI
USB controller is runtime-suspended, then plugging in a new USB device
into one of the controller's ports will not wake up the controller,
which should happen.

For this reason, make pci_acpi_wake_dev() always attempt to resume
the device it is called for regardless of the device's PME Status bit
value (that bit still has to be cleared if set at this point,
though).

Reported-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Matthew Garrett <mjg59@srcf.ucam.org>
CC: stable@vger.kernel.org # v3.7+
drivers/pci/pci-acpi.c