]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2
authorLuca Weiss <luca.weiss@fairphone.com>
Thu, 20 Oct 2022 14:52:37 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:43 +0000 (13:32 +0100)
commit6c32e8c60b705f9ec2942ab0c9a0842937f0d720
treec59c5b15743dd56b3e898eb1d3de18956f79056b
parent32472695c293bd85ab2e0e599fd7d6f6466b8b51
thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2

[ Upstream commit 81c36299b2e8204f203b2de26a86711ff08cd353 ]

On gen2 chips the stage2 threshold is not 140 degC but 125 degC.

Make the warning message clearer by using this variable and also by
including the temperature that was checked for.

Fixes: 3aa44ed6953c ("thermal/drivers/qcom-spmi-temp-alarm: Add support for GEN2 rev 1 PMIC peripherals")
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Amit Kucheria <amitk@kernel.org>
Link: https://lore.kernel.org/r/20221020145237.942146-1-luca.weiss@fairphone.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/qcom/qcom-spmi-temp-alarm.c