diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-02-25 19:53:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-02-25 19:53:31 +0000 |
commit | f1bde82f00904bc73cfe2fcce437c87614b4a47d (patch) | |
tree | c63ff9b9404a01b615d8241d63d9c3fc01f0feaf /package/mac80211/patches/300-pending_work.patch | |
parent | 0f2fc0adfd87bbc62e1f9106dfef0b51b08c6fe4 (diff) | |
download | master-31e0f0ae-f1bde82f00904bc73cfe2fcce437c87614b4a47d.tar.gz master-31e0f0ae-f1bde82f00904bc73cfe2fcce437c87614b4a47d.tar.bz2 master-31e0f0ae-f1bde82f00904bc73cfe2fcce437c87614b4a47d.zip |
ath9k: issue a cold reset after failures or after bringing the chip out of full sleep - fixes many kinds of DMA issues
SVN-Revision: 35785
Diffstat (limited to 'package/mac80211/patches/300-pending_work.patch')
-rw-r--r-- | package/mac80211/patches/300-pending_work.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 11c9a5af4d..51da3cf84d 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -499,3 +499,16 @@ ret = 0; } rcu_read_unlock(); +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -1463,7 +1463,9 @@ static bool ath9k_hw_chip_reset(struct a + reset_type = ATH9K_RESET_POWER_ON; + else + reset_type = ATH9K_RESET_COLD; +- } ++ } else if (ah->chip_fullsleep || REG_READ(ah, AR_Q_TXE) || ++ (REG_READ(ah, AR_CR) & AR_CR_RXE)) ++ reset_type = ATH9K_RESET_COLD; + + if (!ath9k_hw_set_reset_reg(ah, reset_type)) + return false; |