Skip to content

Commit

Permalink
ath9k_htc: Use multiple register writes
Browse files Browse the repository at this point in the history
This patch fixes a code segment in configpciepowersave()
to make use of multiple register writes.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Apr 26, 2010
1 parent a3be14b commit d5e347b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/ath/ath9k/ar9002_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ static void ar9002_hw_configpcipowersave(struct ath_hw *ah,
REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000);

} else {
ENABLE_REGWRITE_BUFFER(ah);

REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fc00);
REG_WRITE(ah, AR_PCIE_SERDES, 0x24924924);

Expand All @@ -428,6 +430,9 @@ static void ar9002_hw_configpcipowersave(struct ath_hw *ah,

/* Load the new settings */
REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000);

REGWRITE_BUFFER_FLUSH(ah);
DISABLE_REGWRITE_BUFFER(ah);
}

udelay(1000);
Expand Down

0 comments on commit d5e347b

Please sign in to comment.