2023-05-04 01:32:14

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [PATCH v2 0/6] thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling


Fixes in the interrupt handling of the LVTS thermal driver noticed while
testing it on the Spherion Chromebook (mt8192-asurada-spherion) with the
MT8192 support series [1].

These are standalone fixes and don't depend on anything else.

While version 1 fixed the interrupt storms that were happening, after
doing some more testing I realized that interrupts still weren't
correctly working when crossing thermal trip points, so I've added a
couple more commits to get that fixed on version 2.

[1] https://lore.kernel.org/all/[email protected]/

Thanks,
Nícolas

Changes in v2:
- Added commits 3, 5, 6 to get working interrupts when crossing thermal
trip points
- Updated commit 4 with interrupt flags for the offset

Nícolas F. R. A. Prado (6):
thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllers
thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate mode
thermal/drivers/mediatek/lvts_thermal: Use offset threshold for IRQ
thermal/drivers/mediatek/lvts_thermal: Disable undesired interrupts
thermal/drivers/mediatek/lvts_thermal: Don't leave threshold zeroed
thermal/drivers/mediatek/lvts_thermal: Manage threshold between
sensors

drivers/thermal/mediatek/lvts_thermal.c | 142 ++++++++++++++++++------
1 file changed, 110 insertions(+), 32 deletions(-)

--
2.40.1