Patch "thermal/drivers/mediatek: Fix control buffer enablement on MT7896" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    thermal/drivers/mediatek: Fix control buffer enablement on MT7896

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     thermal-drivers-mediatek-fix-control-buffer-enableme.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7aff024e9796df85fab41d22f805d57197a04331
Author: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
Date:   Thu Sep 7 13:20:18 2023 +0200

    thermal/drivers/mediatek: Fix control buffer enablement on MT7896
    
    [ Upstream commit 371ed6263e2403068b359f0c07188548c2d70827 ]
    
    Reading thermal sensor on mt7986 devices returns invalid temperature:
    
    bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp
     -274000
    
    Fix this by adding missing members in mtk_thermal_data struct which were
    used in mtk_thermal_turn_on_buffer after commit 33140e668b10.
    
    Cc: stable@xxxxxxxxxxxxxxx
    Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
    Signed-off-by: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
    Reviewed-by: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
    Reviewed-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
    Tested-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
    Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230907112018.52811-1-linux@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c
index 8b0edb2048443..9ee2e7283435a 100644
--- a/drivers/thermal/mediatek/auxadc_thermal.c
+++ b/drivers/thermal/mediatek/auxadc_thermal.c
@@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = {
 	.adcpnp = mt7986_adcpnp,
 	.sensor_mux_values = mt7986_mux_values,
 	.version = MTK_THERMAL_V3,
+	.apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1,
+	.apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3),
+	.apmixed_buffer_ctl_set = BIT(0),
 };
 
 static bool mtk_thermal_temp_is_valid(int temp)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux