300-ath9k_hw-reset-AHB-WMAC-interface-on-AR91xx.patch 602 B

12345678910111213141516171819202122232425
  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. Should fix a few stability issues
  5. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  6. ---
  7. --- a/drivers/net/wireless/ath/ath9k/hw.c
  8. +++ b/drivers/net/wireless/ath/ath9k/hw.c
  9. @@ -1394,8 +1394,12 @@ static bool ath9k_hw_set_reset(struct at
  10. if (!AR_SREV_9100(ah))
  11. REG_WRITE(ah, AR_RC, 0);
  12. - if (AR_SREV_9100(ah))
  13. + if (AR_SREV_9100(ah)) {
  14. + /* Reset the AHB-WMAC interface */
  15. + if (ah->external_reset)
  16. + ah->external_reset();
  17. udelay(50);
  18. + }
  19. return true;
  20. }