Skip to content

thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling

Nícolas F. R. A. Prado linux-arm-kernel linux-mediatek linux-pm lkml 3 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 11 repliesApplied
  2. v26 patches 3 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Reworded cover letter
- Split bitmaps for immediate and filtered modes into separate arrays (patch 2)
- Removed duplicate code for setting MINIMUM_THRESHOLD (patch 5)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllersdrivers/thermal/mediatek/lvts_thermal.c+1 -11 reply
2/6thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate modedrivers/thermal/mediatek/lvts_thermal.c+33 -241 reply
3/6thermal/drivers/mediatek/lvts_thermal: Use offset threshold for IRQdrivers/thermal/mediatek/lvts_thermal.c+6 -62 replies
4/6thermal/drivers/mediatek/lvts_thermal: Disable undesired interruptsdrivers/thermal/mediatek/lvts_thermal.c+1 -12 replies
5/6thermal/drivers/mediatek/lvts_thermal: Don't leave threshold zeroeddrivers/thermal/mediatek/lvts_thermal.c+6 -62 replies
6/6thermal/drivers/mediatek/lvts_thermal: Manage threshold between sensorsdrivers/thermal/mediatek/lvts_thermal.c+69 -02 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMatthias BruggerAngeloGioacchino Del RegnoChen-Yu TsaiAlexandre Mergnat
1/6R-b R-b T-b R-b
2/6R-b T-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/6] thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling

This series fixes interrupt handling in the LVTS thermal driver. It not only solves the interrupt storms currently happening, but also allows the temperature monitoring interrupts to trigger when the thermal trip temperature is reached.

This series was tested together with the MT8192 support series [1] on the Spherion Chromebook (mt8192-asurada-spherion).

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

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

Thanks,
Nícolas

Changes in v3:
- Reworded cover letter
- Split bitmaps for immediate and filtered modes into separate arrays (patch 2)
- Removed duplicate code for setting MINIMUM_THRESHOLD (patch 5)

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 | 152 ++++++++++++++++++------
 1 file changed, 115 insertions(+), 37 deletions(-)
Signature · 1 line
2.41.0