thermal/drivers/qoriq: Only enable supported sensors
authorPeng Fan <peng.fan@nxp.com>
Tue, 16 May 2023 08:37:45 +0000 (16:37 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:13 +0000 (12:03 +0200)
commit9301575df2509ecf8bd66f601046afaff606b1d5
treec3fb3a51cf98d14b54123a1f750fed4bc7e63cca
parent5474e98b3e28918f77c10787f6ce9e1937e4fb78
thermal/drivers/qoriq: Only enable supported sensors

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
drivers/thermal/qoriq_thermal.c