Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d9fef76

Browse files
jpanisbldlezcano
authored andcommitted
thermal/drivers/mediatek/lvts_thermal: Remove filtered mode for mt8188
Filtered mode is not supported on mt8188 SoC and is the source of bad results. Move to immediate mode which provides good temperatures. Fixes: f4745f5 ("thermal/drivers/mediatek/lvts_thermal: Add MT8188 support") Reviewed-by: Nicolas Pitre <npitre@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Julien Panis <jpanis@baylibre.com> Link: https://lore.kernel.org/r/20240516-mtk-thermal-mt8188-mode-fix-v2-1-40a317442c62@baylibre.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent c3f38fa commit d9fef76

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,6 @@ static const struct lvts_ctrl_data mt8188_lvts_mcu_data_ctrl[] = {
14581458
},
14591459
VALID_SENSOR_MAP(1, 1, 1, 1),
14601460
.offset = 0x0,
1461-
.mode = LVTS_MSR_FILTERED_MODE,
14621461
},
14631462
{
14641463
.lvts_sensor = {
@@ -1469,7 +1468,6 @@ static const struct lvts_ctrl_data mt8188_lvts_mcu_data_ctrl[] = {
14691468
},
14701469
VALID_SENSOR_MAP(1, 1, 0, 0),
14711470
.offset = 0x100,
1472-
.mode = LVTS_MSR_FILTERED_MODE,
14731471
}
14741472
};
14751473

@@ -1483,7 +1481,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = {
14831481
},
14841482
VALID_SENSOR_MAP(0, 1, 0, 0),
14851483
.offset = 0x0,
1486-
.mode = LVTS_MSR_FILTERED_MODE,
14871484
},
14881485
{
14891486
.lvts_sensor = {
@@ -1496,7 +1493,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = {
14961493
},
14971494
VALID_SENSOR_MAP(1, 1, 1, 0),
14981495
.offset = 0x100,
1499-
.mode = LVTS_MSR_FILTERED_MODE,
15001496
},
15011497
{
15021498
.lvts_sensor = {
@@ -1507,7 +1503,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = {
15071503
},
15081504
VALID_SENSOR_MAP(1, 1, 0, 0),
15091505
.offset = 0x200,
1510-
.mode = LVTS_MSR_FILTERED_MODE,
15111506
},
15121507
{
15131508
.lvts_sensor = {
@@ -1518,7 +1513,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = {
15181513
},
15191514
VALID_SENSOR_MAP(1, 1, 0, 0),
15201515
.offset = 0x300,
1521-
.mode = LVTS_MSR_FILTERED_MODE,
15221516
}
15231517
};
15241518

0 commit comments

Comments
 (0)