ath10k: disable irqs after fw crash
authorMichal Kazior <michal.kazior@tieto.com>
Sat, 24 Jan 2015 10:14:52 +0000 (12:14 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Jan 2015 14:22:43 +0000 (16:22 +0200)
It makes little sense to keep handling irqs if fw
is dead.

This prevents multiple fw register dumps upon
crash on some devices (seen on QCA6174).

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c

index a31746df7accb138d1e988f9aa5ee1bb1343a189..e6972b09333ebe37638a586213c46f1e31d11d56 100644 (file)
@@ -2126,6 +2126,7 @@ static void ath10k_msi_err_tasklet(unsigned long data)
                return;
        }
 
+       ath10k_pci_irq_disable(ar);
        ath10k_pci_fw_crashed_clear(ar);
        ath10k_pci_fw_crashed_dump(ar);
 }
@@ -2195,6 +2196,7 @@ static void ath10k_pci_tasklet(unsigned long data)
        struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
 
        if (ath10k_pci_has_fw_crashed(ar)) {
+               ath10k_pci_irq_disable(ar);
                ath10k_pci_fw_crashed_clear(ar);
                ath10k_pci_fw_crashed_dump(ar);
                return;
This page took 0.026657 seconds and 5 git commands to generate.