Skip to contentSkip to conversation

thermal/drivers/mediatek: Fix probe for THERMAL_V2

PATCH In review Markus Schneider-Pargmann 2 participants 3 messages Sep 18, 2023 – Oct 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/mediatek/auxadc_thermal.c +1 -1
index 843214d30bd8..8b0edb204844 100644
@@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
 
 	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)
Signature · 1 line
2.40.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Il 18/09/23 12:07, Markus Schneider-Pargmann ha scritto:

Quoted 10 lines

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.

I have no idea how it happened that I didn't notice that mistake.

#2 lore raw
In reply to Markus Schneider-Pargmann

Hi Daniel,

Quoted 10 lines · Markus Schneider-Pargmann

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.

Did you have a chance to have a look at this fix and the other one for auxadc_thermal?
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Thanks!

Best,
Markus

Quoted 20 lines
---
 drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/mediatek/auxadc_thermal.c +1 -1
index 843214d30bd8..8b0edb204844 100644
@@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
 
 	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)
Signature · 1 line
2.40.1