88f383c4aecc5b17fcb56020805e4b705925ac5b
[openwrt/staging/linusw.git] /
1 From e6f43063f2fe9f08b34797bc6d223f7d63b01910 Mon Sep 17 00:00:00 2001
2 From: Markus Schneider-Pargmann <msp@baylibre.com>
3 Date: Mon, 18 Sep 2023 12:07:06 +0200
4 Subject: [PATCH 39/42] thermal/drivers/mediatek: Fix probe for THERMAL_V2
5
6 Fix the probe function to call mtk_thermal_release_periodic_ts for
7 everything != MTK_THERMAL_V1. This was accidentally changed from V1
8 to V2 in the original patch.
9
10 Reported-by: Frank Wunderlich <frank-w@public-files.de>
11 Closes: https://lore.kernel.org/lkml/B0B3775B-B8D1-4284-814F-4F41EC22F532@public-files.de/
12 Reported-by: Daniel Lezcano <daniel.lezcano@linaro.org>
13 Closes: https://lore.kernel.org/lkml/07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org/
14 Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
15 Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
16 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
17 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
18 Link: https://lore.kernel.org/r/20230918100706.1229239-1-msp@baylibre.com
19 ---
20 drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/thermal/mediatek/auxadc_thermal.c
24 +++ b/drivers/thermal/mediatek/auxadc_thermal.c
25 @@ -1268,7 +1268,7 @@ static int mtk_thermal_probe(struct plat
26
27 mtk_thermal_turn_on_buffer(mt, apmixed_base);
28
29 - if (mt->conf->version != MTK_THERMAL_V2)
30 + if (mt->conf->version != MTK_THERMAL_V1)
31 mtk_thermal_release_periodic_ts(mt, auxadc_base);
32
33 if (mt->conf->version == MTK_THERMAL_V1)