ath9k: ath9k_hw_4k_set_board_values: use rmw buffer
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 22 Mar 2015 18:30:00 +0000 (19:30 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:31:38 +0000 (11:31 +0300)
it will reduce exution time from 14ms to 2ms on ar9271

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/eeprom_4k.c

index 06005626241067f15cdd6ddd6dd8644147ac6222..291c1d14403ce4bed2679d9694445d95d9fc4e91 100644 (file)
@@ -930,6 +930,7 @@ static void ath9k_hw_4k_set_board_values(struct ath_hw *ah,
                }
        }
 
+       ENABLE_REG_RMW_BUFFER(ah);
        if (AR_SREV_9271(ah)) {
                ath9k_hw_analog_shift_rmw(ah,
                                          AR9285_AN_RF2G3,
@@ -1034,6 +1035,7 @@ static void ath9k_hw_4k_set_board_values(struct ath_hw *ah,
                                          AR9285_AN_RF2G4_DB2_4_S,
                                          db2[4]);
        }
+       REG_RMW_BUFFER_FLUSH(ah);
 
 
        REG_RMW_FIELD(ah, AR_PHY_SETTLING, AR_PHY_SETTLING_SWITCH,