]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Hold ACPI scan lock over the "freeze" sleep state
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 May 2014 21:29:57 +0000 (23:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 May 2014 10:18:27 +0000 (12:18 +0200)
commit238bce043b6f650292e81a91c26f40667b99baaf
tree19834a42634cdc86a0addca25d1f71cbf408b273
parenta82aa70832b305c9cfbce490b2a0378241167b6f
ACPI / PM: Hold ACPI scan lock over the "freeze" sleep state

The "freeze" sleep state suffers from the same issue that was
addressed by commit 6b1d515b83f5 (ACPI / PM: Hold acpi_scan_lock over
system PM transitions) for ACPI sleep states, that is, things break
if ->remove() is called for devices whose system resume callbacks
haven't been executed yet.

It also can be addressed in the same way, by holding the ACPI scan
lock over the "freeze" sleep state and PM transitions to and from
that state, but ->begin() and ->end() platform operations for the
"freeze" sleep state are needed for this purpose.

This change has been tested on Acer Aspire S5 with Thunderbolt.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c
include/linux/suspend.h
kernel/power/suspend.c