aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/dma.c
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2013-12-06 21:17:40 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-12-11 10:56:22 -0500
commitcb161cda634ae5fdb4de797096ba9028171507d2 (patch)
treeca3b1ac67a4ad722b45d5714a36176c44972b310 /drivers/net/wireless/ath/ath5k/dma.c
parent98b32decc83ed3137e3ddbc918b102f8fc406b6d (diff)
ath5k: Reset Tx interrupt bits also on PISR
Some cards don't update the PISR properly when all SISR bits for Tx interrupts are being cleared and as a result we get interrupt storm. Since we handle all tx queues all together (so we don't really use the SISR bits to do per-queue interrupt handling), we can manualy update PISR by doing a write-to-clear on its Tx interrupt bits. Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/dma.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/dma.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c
index ba200b24be64..e6c52f7c26e7 100644
--- a/drivers/net/wireless/ath/ath5k/dma.c
+++ b/drivers/net/wireless/ath/ath5k/dma.c
@@ -616,7 +616,16 @@ ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask)
616 * SISRs will also clear PISR so no need to worry here. 616 * SISRs will also clear PISR so no need to worry here.
617 */ 617 */
618 618
619 pisr_clear = pisr & ~AR5K_ISR_BITS_FROM_SISRS; 619 /* XXX: There seems to be an issue on some cards
620 * with tx interrupt flags not being updated
621 * on PISR despite that all Tx interrupt bits
622 * are cleared on SISRs. Since we handle all
623 * Tx queues all together it shouldn't be an
624 * issue if we clear Tx interrupt flags also
625 * on PISR to avoid that.
626 */
627 pisr_clear = (pisr & ~AR5K_ISR_BITS_FROM_SISRS) |
628 (pisr & AR5K_INT_TX_ALL);
620 629
621 /* 630 /*
622 * Write to clear them... 631 * Write to clear them...