diff options
author | Caleb Connolly <[email protected]> | 2023-01-15 17:59:24 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-17 19:04:13 -0800 |
commit | 9ec9b2a30853ba843b70ea16f196e5fe3327be5f (patch) | |
tree | 926e438cc748fba2b3ffba10fe6581f0306be8fa /tools/perf/scripts/python/check-perf-trace.py | |
parent | 1f3bd64ad921f051254591fbed04fd30b306cde6 (diff) |
net: ipa: disable ipa interrupt during suspend
The IPA interrupt can fire when pm_runtime is disabled due to it racing
with the PM suspend/resume code. This causes a splat in the interrupt
handler when it tries to call pm_runtime_get().
Explicitly disable the interrupt in our ->suspend callback, and
re-enable it in ->resume to avoid this. If there is an interrupt pending
it will be handled after resuming. The interrupt is a wake_irq, as a
result even when disabled if it fires it will cause the system to wake
from suspend as well as cancel any suspend transition that may be in
progress. If there is an interrupt pending, the ipa_isr_thread handler
will be called after resuming.
Fixes: 1aac309d3207 ("net: ipa: use autosuspend")
Signed-off-by: Caleb Connolly <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions