diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-20 01:42:32 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-21 01:23:53 +0200 |
commit | ad07277e82dedabacc52c82746633680a3187d25 (patch) | |
tree | fe2d921753be6d8cf4ed9e68b9ad8925212b17ea /drivers/pci/hotplug | |
parent | ACPI / hotplug / PCI: Fix NULL pointer dereference in cleanup_bridge() (diff) | |
download | linux-ad07277e82dedabacc52c82746633680a3187d25.tar.xz linux-ad07277e82dedabacc52c82746633680a3187d25.zip |
ACPI / PM: Hold acpi_scan_lock over system PM transitions
Bad things happen if ACPI hotplug events are handled during system
PM transitions, especially if devices are removed as a result.
To prevent those bad things from happening, acquire acpi_scan_lock
when a PM transition is started and release it when that transition
is complete or has been aborted.
This fixes resume lockup on my test-bed Acer Aspire S5 that happens
when Thunderbolt devices are disconnected from the machine while
suspended.
Also fixes the analogous problem for Mika Westerberg on an
Intel DZ77RE-75K board.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/pci/hotplug')
0 files changed, 0 insertions, 0 deletions