diff options
| author | Ovidiu Panait <ovidiu.panait.rb@renesas.com> | 2026-09-16 12:00:00 +0000 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2026-09-21 17:47:58 +0200 |
| commit | aa1bc39e45f29a4f56d7e6be7164e100727df465 (patch) | |
| tree | 8b8f54e73b1044c2551e8c608530f7243860c84f /tools/perf/scripts/python/task-analyzer.py | |
| parent | 84f0e14e6261ef718e6a8583073097ad9ea70e14 (diff) | |
thermal/drivers/renesas/rzg3e: Fix runtime PM handling of compare irq
The TSU hw is limited in the sense that lower and upper trip points can be
set, but the hw cannot raise interrupts on its own. It can only signal that
the thresholds were passed when the temperature is read, either during
polling or on a manual read. Therefore, the interrupt enable state
configured by set_trips() must remain active for the next read to trigger
an event.
Currently, runtime PM autosuspend puts the chip to sleep and clears the
compare interrupt that was enabled during set_trips(). On power up, the
compare interrupt enable is not restored, which means that it won't ever
fire.
Fix this by caching the contents of the SIER register during runtime power
off and restore it during runtime power on.
Fixes: dc67521c20b7 ("thermal/drivers/renesas/rzg3e: Fix add thermal driver for the Renesas RZ/G3E SoC")
Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Link: https://patch.msgid.link/20260916120003.87018-3-ovidiu.panait.rb@renesas.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
