blob: d648a3a3e564a336f8a170b4de163746a82405ef [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From: Felix Fietkau <nbd@nbd.name>
2Date: Sat, 9 Jul 2016 15:25:24 +0200
3Subject: [PATCH] ath9k_hw: reset AHB-WMAC interface on AR91xx
4
5Should fix a few stability issues
6
7Signed-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 }