Skip to contentSkip to conversation

ath9k: Fix regression in PA calibration

PATCH In review Sujith 1 participant 1 message Sep 17, 2009 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore

Sujith

author
#0 lore raw

PATCH 11/12 ath9k: Fix regression in PA calibration

The commit "ath9k: Fix bugs in programming registers during PA CAL" removed a REG_READ of 0x7834. This resulted in incorrect computation of the subsequent value to be written in RF2G6.

This patch fixes the regression by re-adding the REG_READ.

---
 drivers/net/wireless/ath/ath9k/calib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/calib.c +1 -0
index 22a3a69..0ad6d0b 100644
@@ -936,6 +936,7 @@ static inline void ath9k_hw_9285_pa_cal(struct ath_hw *ah, bool is_reset)
 		regVal |= (1 << (19 + i));
 		REG_WRITE(ah, 0x7834, regVal);
 		udelay(1);
+		regVal = REG_READ(ah, 0x7834);
 		regVal &= (~(0x1 << (19 + i)));
 		reg_field = MS(REG_READ(ah, 0x7840), AR9285_AN_RXTXBB1_SPARE9);
 		regVal |= (reg_field << (19 + i));
Signature · 1 line
1.6.4.3