]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: thermal: Rework system suspend and resume handling
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Dec 2025 14:44:30 +0000 (15:44 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:09:35 +0000 (15:09 +0100)
commit6cba60361b8922b140ee460220f291d45448d537
tree143119ae8cbe8474808715634ea0a6e742674855
parentd1db160da0d1c4711267d311d2461127d7c9a2ba
ACPI: thermal: Rework system suspend and resume handling

In the process of handling system resume, acpi_thermal_resume() attempts
to power up active cooling devices to guarantee that they will be
operational when the ACPI thermal check queued by it runs.  However,
the only kind of cooling devices that can be bound to ACPI thermal zones
is fans and they are already powered up by the ACPI fan driver resume,
which additionally takes "ACPI 4" fans that don't need to be powered
up into account.

For this reason, remove the part of acpi_thermal_resume() related to
fans and in order to ensure that it will run after powering up all fans,
rename it to acpi_thermal_complete() and point the .complete() driver
callback to it.  Analogously, rename acpi_thermal_suspend() to
acpi_thermal_prepare() and point the .prepare() driver callback to it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: lihuisong@huawei.com
Link: https://patch.msgid.link/3024049.e9J7NaK4W3@rafael.j.wysocki
drivers/acpi/thermal.c