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 <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Reported-by: Daniel Lezcano <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
Signed-off-by: Markus Schneider-Pargmann <[email protected]>
---
drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c
index 843214d30bd8..8b0edb204844 100644
--- a/drivers/thermal/mediatek/auxadc_thermal.c
+++ b/drivers/thermal/mediatek/auxadc_thermal.c
@@ -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)
--
2.40.1
Il 18/09/23 12:07, Markus Schneider-Pargmann ha scritto:
> 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 <[email protected]>
> Closes: https://lore.kernel.org/lkml/[email protected]/
> Reported-by: Daniel Lezcano <[email protected]>
> Closes: https://lore.kernel.org/lkml/[email protected]/
> Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
> Signed-off-by: Markus Schneider-Pargmann <[email protected]>
I have no idea how it happened that I didn't notice that mistake.
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Hi Daniel,
On Mon, Sep 18, 2023 at 12:07:06PM +0200, Markus Schneider-Pargmann wrote:
> 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 <[email protected]>
> Closes: https://lore.kernel.org/lkml/[email protected]/
> Reported-by: Daniel Lezcano <[email protected]>
> Closes: https://lore.kernel.org/lkml/[email protected]/
> Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
> Signed-off-by: Markus Schneider-Pargmann <[email protected]>
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
> ---
> drivers/thermal/mediatek/auxadc_thermal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c
> index 843214d30bd8..8b0edb204844 100644
> --- a/drivers/thermal/mediatek/auxadc_thermal.c
> +++ b/drivers/thermal/mediatek/auxadc_thermal.c
> @@ -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)
> --
> 2.40.1
>