mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
9d7e603f4d
Some backported thermal patches ended up with the wrong kernel
version in their filename. Fix this.
Fixes: c36de2e73a
("mediatek: backport a hell of thermal commits")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
From e6f43063f2fe9f08b34797bc6d223f7d63b01910 Mon Sep 17 00:00:00 2001
|
|
From: Markus Schneider-Pargmann <msp@baylibre.com>
|
|
Date: Mon, 18 Sep 2023 12:07:06 +0200
|
|
Subject: [PATCH 39/42] thermal/drivers/mediatek: Fix probe for THERMAL_V2
|
|
|
|
Fix the probe function to call mtk_thermal_release_periodic_ts for
|
|
everything != MTK_THERMAL_V1. This was accidentally changed from V1
|
|
to V2 in the original patch.
|
|
|
|
Reported-by: Frank Wunderlich <frank-w@public-files.de>
|
|
Closes: https://lore.kernel.org/lkml/B0B3775B-B8D1-4284-814F-4F41EC22F532@public-files.de/
|
|
Reported-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Closes: https://lore.kernel.org/lkml/07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org/
|
|
Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
|
|
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
|
|
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Link: https://lore.kernel.org/r/20230918100706.1229239-1-msp@baylibre.com
|
|
---
|
|
drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/thermal/mediatek/auxadc_thermal.c
|
|
+++ b/drivers/thermal/mediatek/auxadc_thermal.c
|
|
@@ -1268,7 +1268,7 @@ static int mtk_thermal_probe(struct plat
|
|
|
|
mtk_thermal_turn_on_buffer(mt, apmixed_base);
|
|
|
|
- if (mt->conf->version != MTK_THERMAL_V2)
|
|
+ if (mt->conf->version != MTK_THERMAL_V1)
|
|
mtk_thermal_release_periodic_ts(mt, auxadc_base);
|
|
|
|
if (mt->conf->version == MTK_THERMAL_V1)
|