Skip to content

Commit 1650d32

Browse files
kcxtjeff-t-johnson
authored andcommitted
ath10k: snoc: fix unbalanced IRQ enable in crash recovery
In ath10k_snoc_hif_stop() we skip disabling the IRQs in the crash recovery flow, but we still unconditionally call enable again in ath10k_snoc_hif_start(). We can't check the ATH10K_FLAG_CRASH_FLUSH bit since it is cleared before hif_start() is called, so instead check the ATH10K_SNOC_FLAG_RECOVERY flag and skip enabling the IRQs during crash recovery. This fixes unbalanced IRQ enable splats that happen after recovering from a crash. Fixes: 0e622f6 ("ath10k: add support for WCN3990 firmware crash recovery") Signed-off-by: Caleb Connolly <[email protected]> Tested-by: Loic Poulain <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]>
1 parent 1b98f35 commit 1650d32

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/wireless/ath/ath10k

1 file changed

+3
-1
lines changed

drivers/net/wireless/ath/ath10k/snoc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,9 @@ static int ath10k_snoc_hif_start(struct ath10k *ar)
937937

938938
dev_set_threaded(ar->napi_dev, true);
939939
ath10k_core_napi_enable(ar);
940-
ath10k_snoc_irq_enable(ar);
940+
/* IRQs are left enabled when we restart due to a firmware crash */
941+
if (!test_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags))
942+
ath10k_snoc_irq_enable(ar);
941943
ath10k_snoc_rx_post(ar);
942944

943945
clear_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags);

0 commit comments

Comments
 (0)