Skip to content

Commit

Permalink
ath9k_hw: only use the PCIe disable register write sequence for AR5416
Browse files Browse the repository at this point in the history
Newer chips do not need this, and maybe these register writes could have
negative side effects on newer hardware.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Dec 13, 2010
1 parent 248a38d commit 040b74f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,9 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)

static void ath9k_hw_disablepcie(struct ath_hw *ah)
{
if (AR_SREV_9100(ah))
if (!AR_SREV_5416(ah))
return;

ENABLE_REGWRITE_BUFFER(ah);

REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fc00);
REG_WRITE(ah, AR_PCIE_SERDES, 0x24924924);
REG_WRITE(ah, AR_PCIE_SERDES, 0x28000029);
Expand All @@ -300,8 +298,6 @@ static void ath9k_hw_disablepcie(struct ath_hw *ah)
REG_WRITE(ah, AR_PCIE_SERDES, 0x000e1007);

REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000);

REGWRITE_BUFFER_FLUSH(ah);
}

/* This should work for all families including legacy */
Expand Down

0 comments on commit 040b74f

Please sign in to comment.