]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
thermal: intel: pch: Fix unexpected shutdown at critical temperature
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 21 Jan 2021 08:49:02 +0000 (16:49 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Feb 2021 07:26:26 +0000 (08:26 +0100)
commit37b8ed3f7a0664d296dbcfda7f5db5268b9542b9
tree339ad025c306ebc2309d868b7815dafe03ec4c22
parenta2382ac5bba8111241cc49b5868c4157a285943c
thermal: intel: pch: Fix unexpected shutdown at critical temperature

BugLink: https://bugs.launchpad.net/bugs/1906168
Like previous patch, the intel_pch_thermal device is not in ACPI
ThermalZone namespace, so a critical trip doesn't mean shutdown.

Override the default .critical callback to prevent surprising thermal
shutdoown.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201221172345.36976-2-kai.heng.feng@canonical.com
(cherry picked from commit 03671968d0bf2db598f7e3aa98f190b76c1bb4ff linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/thermal/intel/intel_pch_thermal.c