linux/drivers/net/ipa
Caleb Connolly 01a6e10810 net: ipa: disable ipa interrupt during suspend
[ Upstream commit 9ec9b2a308 ]

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: 1aac309d32 ("net: ipa: use autosuspend")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20230115175925.465918-1-caleb.connolly@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:27:11 +01:00
..
Kconfig
Makefile
gsi.c
gsi.h
gsi_private.h
gsi_reg.h
gsi_trans.c
gsi_trans.h
ipa.h
ipa_cmd.c
ipa_cmd.h
ipa_data-v3.1.c
ipa_data-v3.5.1.c
ipa_data-v4.2.c
ipa_data-v4.5.c
ipa_data-v4.9.c
ipa_data-v4.11.c
ipa_data.h
ipa_endpoint.c
ipa_endpoint.h
ipa_gsi.c
ipa_gsi.h
ipa_interrupt.c
ipa_interrupt.h
ipa_main.c
ipa_mem.c
ipa_mem.h
ipa_modem.c
ipa_modem.h
ipa_power.c
ipa_power.h
ipa_qmi.c
ipa_qmi.h
ipa_qmi_msg.c
ipa_qmi_msg.h
ipa_reg.c
ipa_reg.h
ipa_resource.c
ipa_resource.h
ipa_smp2p.c
ipa_smp2p.h
ipa_sysfs.c
ipa_sysfs.h
ipa_table.c
ipa_table.h
ipa_uc.c
ipa_uc.h
ipa_version.h