]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal/drivers/qcom-spmi-temp-alarm: Enable stage 2 shutdown when required
authorDavid Collins <david.collins@oss.qualcomm.com>
Thu, 10 Jul 2025 22:45:51 +0000 (15:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:17 +0000 (16:28 +0200)
commit58a39eda7f95eee4084922838e7567ccca18264c
tree9a6c59c67b1f59272ffeb48085c3cb8d1d56fa40
parentcfa9b873a29c9451cea824f109833e94f7d63d6f
thermal/drivers/qcom-spmi-temp-alarm: Enable stage 2 shutdown when required

[ Upstream commit f8e157ff2df46ddabd930815d196895976227831 ]

Certain TEMP_ALARM GEN2 PMIC peripherals need over-temperature stage 2
automatic PMIC partial shutdown. This will ensure that in the event of
reaching the hotter stage 3 over-temperature threshold, repeated faults
will be avoided during the automatic PMIC hardware full shutdown.
Modify the stage 2 shutdown control logic to ensure that stage 2
shutdown is enabled on all affected PMICs. Read the digital major
and minor revision registers to identify these PMICs.

Signed-off-by: David Collins <david.collins@oss.qualcomm.com>
Signed-off-by: Anjelique Melendez <anjelique.melendez@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250710224555.3047790-2-anjelique.melendez@oss.qualcomm.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/qcom/qcom-spmi-temp-alarm.c