diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-06-17 09:09:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-17 09:09:03 +0000 |
commit | e952654f0b002e6494cfdb705ee8f0646798dd6c (patch) | |
tree | 38e33468bdb2c6dc38f56ba4bfd283e45ada5f3a /package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch | |
parent | 48123b0ce075b3a52968c8382b91182f9d879090 (diff) | |
download | mtk-20170518-e952654f0b002e6494cfdb705ee8f0646798dd6c.zip mtk-20170518-e952654f0b002e6494cfdb705ee8f0646798dd6c.tar.gz mtk-20170518-e952654f0b002e6494cfdb705ee8f0646798dd6c.tar.bz2 |
ath9k: add another fix for some rx/tx dma stop issues, refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46008
Diffstat (limited to 'package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch')
-rw-r--r-- | package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch b/package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch new file mode 100644 index 0000000..bddb15a --- /dev/null +++ b/package/kernel/mac80211/patches/384-ath9k-force-rx_clear-when-disabling-rx.patch @@ -0,0 +1,31 @@ +From: Felix Fietkau <nbd@openwrt.org> +Date: Sun, 7 Jun 2015 13:53:35 +0200 +Subject: [PATCH] ath9k: force rx_clear when disabling rx + +This makes stopping Rx more reliable and should reduce the frequency of +Rx related DMA stop warnings + +Cc: stable@vger.kernel.org +Signed-off-by: Felix Fietkau <nbd@openwrt.org> +--- + +--- a/drivers/net/wireless/ath/ath9k/mac.c ++++ b/drivers/net/wireless/ath/ath9k/mac.c +@@ -677,13 +677,15 @@ void ath9k_hw_startpcureceive(struct ath + + ath9k_ani_reset(ah, is_scanning); + +- REG_CLR_BIT(ah, AR_DIAG_SW, (AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT)); ++ REG_CLR_BIT(ah, AR_DIAG_SW, ++ AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT | AR_DIAG_FORCE_RX_CLEAR); + } + EXPORT_SYMBOL(ath9k_hw_startpcureceive); + + void ath9k_hw_abortpcurecv(struct ath_hw *ah) + { +- REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_RX_ABORT | AR_DIAG_RX_DIS); ++ REG_SET_BIT(ah, AR_DIAG_SW, ++ AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT | AR_DIAG_FORCE_RX_CLEAR); + + ath9k_hw_disable_mib_counters(ah); + } |