Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 11/12] ath9k: Fix regression in PA calibration
@ 2009-09-17  3:58 Sujith
  0 siblings, 0 replies; only message in thread
From: Sujith @ 2009-09-17  3:58 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

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.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/calib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index 22a3a69..0ad6d0b 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -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));
-- 
1.6.4.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-17  3:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17  3:58 [PATCH 11/12] ath9k: Fix regression in PA calibration Sujith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox