mbox series

[v2,0/6] thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling

Message ID 20230504004852.627049-1-nfraprado@collabora.com (mailing list archive)
Headers show
Series thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling | expand

Message

Nícolas F. R. A. Prado May 4, 2023, 12:48 a.m. UTC
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/20230307163413.143334-1-bchihi@baylibre.com/

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(-)