mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-10 02:29:01 +00:00
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. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
d865ca6c14
commit
edbf51f65e
1 changed files with 1 additions and 0 deletions
|
@ -936,6 +936,7 @@ static inline void ath9k_hw_9285_pa_cal(struct ath_hw *ah, bool is_reset)
|
||||||
regVal |= (1 << (19 + i));
|
regVal |= (1 << (19 + i));
|
||||||
REG_WRITE(ah, 0x7834, regVal);
|
REG_WRITE(ah, 0x7834, regVal);
|
||||||
udelay(1);
|
udelay(1);
|
||||||
|
regVal = REG_READ(ah, 0x7834);
|
||||||
regVal &= (~(0x1 << (19 + i)));
|
regVal &= (~(0x1 << (19 + i)));
|
||||||
reg_field = MS(REG_READ(ah, 0x7840), AR9285_AN_RXTXBB1_SPARE9);
|
reg_field = MS(REG_READ(ah, 0x7840), AR9285_AN_RXTXBB1_SPARE9);
|
||||||
regVal |= (reg_field << (19 + i));
|
regVal |= (reg_field << (19 + i));
|
||||||
|
|
Loading…
Reference in a new issue