]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal/drivers/qoriq: Only enable supported sensors
authorPeng Fan <peng.fan@nxp.com>
Tue, 16 May 2023 08:37:45 +0000 (16:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:25 +0000 (19:39 +0200)
commit5aa45866422da7f0fef9cb4eb35d9087304b7451
treeb5d4b096d47e73f1a56c2d3e578ebd062d6ebccb
parent4fb5ee9d9174b4d74dbfe3a4a35cf885839d8e07
thermal/drivers/qoriq: Only enable supported sensors

[ Upstream commit 9301575df2509ecf8bd66f601046afaff606b1d5 ]

There are MAX 16 sensors, but not all of them supported. Such as
i.MX8MQ, there are only 3 sensors. Enabling all 16 sensors will
touch reserved bits from i.MX8MQ reference mannual, and TMU will stuck,
temperature will not update anymore.

Fixes: 45038e03d633 ("thermal: qoriq: Enable all sensors before registering them")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230516083746.63436-3-peng.fan@oss.nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/qoriq_thermal.c