thermal/drivers/mediatek/lvts: Start sensor interrupts disabled
[ Upstream commit 2738fb3ec6838a10d2c4ce65cefdb3b90b11bd61 ] 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 <angelogioacchino.delregno@collabora.com> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://lore.kernel.org/r/20250113-mt8192-lvts-filtered-suspend-fix-v2-4-07a25200c7c6@collabora.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7b32d4e62c
commit
c347928320
@@ -65,7 +65,6 @@
|
|||||||
#define LVTS_HW_FILTER 0x0
|
#define LVTS_HW_FILTER 0x0
|
||||||
#define LVTS_TSSEL_CONF 0x13121110
|
#define LVTS_TSSEL_CONF 0x13121110
|
||||||
#define LVTS_CALSCALE_CONF 0x300
|
#define LVTS_CALSCALE_CONF 0x300
|
||||||
#define LVTS_MONINT_CONF 0x0300318C
|
|
||||||
|
|
||||||
#define LVTS_MONINT_OFFSET_SENSOR0 0xC
|
#define LVTS_MONINT_OFFSET_SENSOR0 0xC
|
||||||
#define LVTS_MONINT_OFFSET_SENSOR1 0x180
|
#define LVTS_MONINT_OFFSET_SENSOR1 0x180
|
||||||
@@ -929,7 +928,7 @@ static int lvts_irq_init(struct lvts_ctrl *lvts_ctrl)
|
|||||||
* The LVTS_MONINT register layout is the same as the LVTS_MONINTSTS
|
* The LVTS_MONINT register layout is the same as the LVTS_MONINTSTS
|
||||||
* register, except we set the bits to enable the interrupt.
|
* register, except we set the bits to enable the interrupt.
|
||||||
*/
|
*/
|
||||||
writel(LVTS_MONINT_CONF, LVTS_MONINT(lvts_ctrl->base));
|
writel(0, LVTS_MONINT(lvts_ctrl->base));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user