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)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 13 Jul 2025 16:00:51 +0000 (18:00 +0200)
commitf8e157ff2df46ddabd930815d196895976227831
treeb95ee78ecd9ac7f4e6e04734021aeb3b75bfe2f6
parentd7b8f8e20813f0179d8ef519541a3527e7661d3a
thermal/drivers/qcom-spmi-temp-alarm: Enable stage 2 shutdown when required

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>
drivers/thermal/qcom/qcom-spmi-temp-alarm.c