diff options
| author | Oleksij Rempel <linux@rempel-privat.de> | 2015-03-22 14:29:55 -0400 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-30 04:31:33 -0400 |
| commit | 3df5dd901d1a4eddcb386d6a5321ef8a61edf376 (patch) | |
| tree | fcc22b6aae7c7696039b606cf679a5d071bffc71 | |
| parent | 9830ba6c9ad0165f4aa1025bcfc8e75d76083907 (diff) | |
ath9k: write buffer related optimisation in ar5008_hw_set_channel_regs
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index f273427fdd29..6c23d279525f 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c | |||
| @@ -681,12 +681,13 @@ static void ar5008_hw_set_channel_regs(struct ath_hw *ah, | |||
| 681 | phymode |= AR_PHY_FC_DYN2040_PRI_CH; | 681 | phymode |= AR_PHY_FC_DYN2040_PRI_CH; |
| 682 | 682 | ||
| 683 | } | 683 | } |
| 684 | ENABLE_REGWRITE_BUFFER(ah); | ||
| 684 | REG_WRITE(ah, AR_PHY_TURBO, phymode); | 685 | REG_WRITE(ah, AR_PHY_TURBO, phymode); |
| 685 | 686 | ||
| 687 | /* This function do only REG_WRITE, so | ||
| 688 | * we can include it to REGWRITE_BUFFER. */ | ||
| 686 | ath9k_hw_set11nmac2040(ah, chan); | 689 | ath9k_hw_set11nmac2040(ah, chan); |
| 687 | 690 | ||
| 688 | ENABLE_REGWRITE_BUFFER(ah); | ||
| 689 | |||
| 690 | REG_WRITE(ah, AR_GTXTO, 25 << AR_GTXTO_TIMEOUT_LIMIT_S); | 691 | REG_WRITE(ah, AR_GTXTO, 25 << AR_GTXTO_TIMEOUT_LIMIT_S); |
| 691 | REG_WRITE(ah, AR_CST, 0xF << AR_CST_TIMEOUT_LIMIT_S); | 692 | REG_WRITE(ah, AR_CST, 0xF << AR_CST_TIMEOUT_LIMIT_S); |
| 692 | 693 | ||
