]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath9k_hw: only use the PCIe disable register write sequence for AR5416
authorFelix Fietkau <nbd@openwrt.org>
Sat, 11 Dec 2010 23:51:07 +0000 (00:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:30 +0000 (15:23 -0500)
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>
drivers/net/wireless/ath/ath9k/hw.c

index 1beb89673b0c475869964b1017ac5f99ecba6c94..7c3d2de93652d148991758ddb40092c4819a557c 100644 (file)
@@ -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);
@@ -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 */