]> www.infradead.org Git - nvme.git/commit
wifi: ath12k: fix soft lockup on suspend
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 9 Jul 2024 07:31:32 +0000 (09:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jul 2024 10:38:10 +0000 (12:38 +0200)
commita47f3320bb4ba6714abe8dddb36399367b491358
tree382e609c775867a45fb8fb9b041b9294b62eeb84
parent6557a28f3e3a54cff4f0dcdd1dfa649b26557ab3
wifi: ath12k: fix soft lockup on suspend

The ext interrupts are enabled when the firmware has been started, but
this may never happen, for example, if the board configuration file is
missing.

When the system is later suspended, the driver unconditionally tries to
disable interrupts, which results in an irq disable imbalance and causes
the driver to spin indefinitely in napi_synchronize().

Make sure that the interrupts have been enabled before attempting to
disable them.

Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Cc: stable@vger.kernel.org # 6.3
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://patch.msgid.link/20240709073132.9168-1-johan+linaro@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath12k/pci.c