| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From: Felix Fietkau <nbd@nbd.name> |
| 2 | Date: Sat, 9 Jul 2016 15:25:24 +0200 |
| 3 | Subject: [PATCH] ath9k_hw: reset AHB-WMAC interface on AR91xx |
| 4 | |
| 5 | Should fix a few stability issues |
| 6 | |
| 7 | Signed-off-by: Felix Fietkau <nbd@nbd.name> |
| 8 | --- |
| 9 | |
| 10 | --- a/drivers/net/wireless/ath/ath9k/hw.c |
| 11 | +++ b/drivers/net/wireless/ath/ath9k/hw.c |
| 12 | @@ -1435,8 +1435,12 @@ static bool ath9k_hw_set_reset(struct at |
| 13 | if (!AR_SREV_9100(ah)) |
| 14 | REG_WRITE(ah, AR_RC, 0); |
| 15 | |
| 16 | - if (AR_SREV_9100(ah)) |
| 17 | + if (AR_SREV_9100(ah)) { |
| 18 | + /* Reset the AHB-WMAC interface */ |
| 19 | + if (ah->external_reset) |
| 20 | + ah->external_reset(); |
| 21 | udelay(50); |
| 22 | + } |
| 23 | |
| 24 | return true; |
| 25 | } |