diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-02-10 18:35:27 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:46:11 -0500 |
commit | 6d08b9b9c6eb2414c4a037407dd121298a74fb36 (patch) | |
tree | c14304c7bb3d000d9ad3777ef5bf35deb08c3c7f /drivers/net/wireless/ath9k/hw.c | |
parent | 24c1a280c8db6beddbb62662c30b79cd3c8d4d01 (diff) |
ath9k: add udelay() for AR5416 on ath9k_hw_configpcipowersave()
We need the udelay() for all families, including AR5416.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index cfcaaf886d03..cad8e39c201e 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -2666,7 +2666,6 @@ void ath9k_hw_configpcipowersave(struct ath_hw *ah, int restore) | |||
2666 | REG_WRITE(ah, INI_RA(&ah->iniPcieSerdes, i, 0), | 2666 | REG_WRITE(ah, INI_RA(&ah->iniPcieSerdes, i, 0), |
2667 | INI_RA(&ah->iniPcieSerdes, i, 1)); | 2667 | INI_RA(&ah->iniPcieSerdes, i, 1)); |
2668 | } | 2668 | } |
2669 | udelay(1000); | ||
2670 | } else if (AR_SREV_9280(ah) && | 2669 | } else if (AR_SREV_9280(ah) && |
2671 | (ah->hw_version.macRev == AR_SREV_REVISION_9280_10)) { | 2670 | (ah->hw_version.macRev == AR_SREV_REVISION_9280_10)) { |
2672 | REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fd00); | 2671 | REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fd00); |
@@ -2690,7 +2689,6 @@ void ath9k_hw_configpcipowersave(struct ath_hw *ah, int restore) | |||
2690 | /* Load the new settings */ | 2689 | /* Load the new settings */ |
2691 | REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000); | 2690 | REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000); |
2692 | 2691 | ||
2693 | udelay(1000); | ||
2694 | } else { | 2692 | } else { |
2695 | REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fc00); | 2693 | REG_WRITE(ah, AR_PCIE_SERDES, 0x9248fc00); |
2696 | REG_WRITE(ah, AR_PCIE_SERDES, 0x24924924); | 2694 | REG_WRITE(ah, AR_PCIE_SERDES, 0x24924924); |
@@ -2714,6 +2712,8 @@ void ath9k_hw_configpcipowersave(struct ath_hw *ah, int restore) | |||
2714 | REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000); | 2712 | REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000); |
2715 | } | 2713 | } |
2716 | 2714 | ||
2715 | udelay(1000); | ||
2716 | |||
2717 | /* set bit 19 to allow forcing of pcie core into L1 state */ | 2717 | /* set bit 19 to allow forcing of pcie core into L1 state */ |
2718 | REG_SET_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA); | 2718 | REG_SET_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA); |
2719 | 2719 | ||