328-ath9k-write-buffer-related-optimisation-in-ar5008_hw.patch 839 B

123456789101112131415161718192021222324252627
  1. From: Oleksij Rempel <[email protected]>
  2. Date: Sun, 22 Mar 2015 19:29:55 +0100
  3. Subject: [PATCH] ath9k: write buffer related optimisation in
  4. ar5008_hw_set_channel_regs
  5. Signed-off-by: Oleksij Rempel <[email protected]>
  6. Signed-off-by: Kalle Valo <[email protected]>
  7. ---
  8. --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c
  9. +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c
  10. @@ -681,12 +681,13 @@ static void ar5008_hw_set_channel_regs(s
  11. phymode |= AR_PHY_FC_DYN2040_PRI_CH;
  12. }
  13. + ENABLE_REGWRITE_BUFFER(ah);
  14. REG_WRITE(ah, AR_PHY_TURBO, phymode);
  15. + /* This function do only REG_WRITE, so
  16. + * we can include it to REGWRITE_BUFFER. */
  17. ath9k_hw_set11nmac2040(ah, chan);
  18. - ENABLE_REGWRITE_BUFFER(ah);
  19. -
  20. REG_WRITE(ah, AR_GTXTO, 25 << AR_GTXTO_TIMEOUT_LIMIT_S);
  21. REG_WRITE(ah, AR_CST, 0xF << AR_CST_TIMEOUT_LIMIT_S);