Skip to content

Commit 2738fb3

Browse files
nfrapradodlezcano
authored andcommitted
thermal/drivers/mediatek/lvts: Start sensor interrupts disabled
Interrupts are enabled per sensor in lvts_update_irq_mask() as needed, there's no point in enabling all of them during initialization. Change the MONINT register initial value so all sensor interrupts start disabled. Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Nícolas F. R. A. Prado <[email protected]> Link: https://lore.kernel.org/r/20250113-mt8192-lvts-filtered-suspend-fix-v2-4-07a25200c7c6@collabora.com Signed-off-by: Daniel Lezcano <[email protected]>
1 parent fa17ff8 commit 2738fb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
#define LVTS_HW_FILTER 0x0
6666
#define LVTS_TSSEL_CONF 0x13121110
6767
#define LVTS_CALSCALE_CONF 0x300
68-
#define LVTS_MONINT_CONF 0x0300318C
6968

7069
#define LVTS_MONINT_OFFSET_HIGH_INTEN_SENSOR0 BIT(3)
7170
#define LVTS_MONINT_OFFSET_HIGH_INTEN_SENSOR1 BIT(8)
@@ -951,7 +950,7 @@ static int lvts_irq_init(struct lvts_ctrl *lvts_ctrl)
951950
* The LVTS_MONINT register layout is the same as the LVTS_MONINTSTS
952951
* register, except we set the bits to enable the interrupt.
953952
*/
954-
writel(LVTS_MONINT_CONF, LVTS_MONINT(lvts_ctrl->base));
953+
writel(0, LVTS_MONINT(lvts_ctrl->base));
955954

956955
return 0;
957956
}

0 commit comments

Comments
 (0)