diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-08-05 07:10:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-22 14:45:57 -0400 |
commit | 69ce674bfa69c55cdf32710d811fa89738eafbef (patch) | |
tree | b33628444ced0fad9f7e170f73af752f427c3d6c /drivers/net/wireless/ath/ath9k/hw.c | |
parent | 3b9cf1be8c4440ae0dd6809bcf3ab6e0e6c54573 (diff) |
ath9k: do btcoex ASPM disabling at initialization time
Disable ASPM in pci ->probe on upstream (device) and downstream
(PCIe port) component. According to e1000e driver authors this is
required. I did not find that requirement in PCIe spec, but it seems
to be logical for me.
This need to be fixed for CONFIG_PCIEASPM, that will be done later ...
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index db44e5b0c98b..875faf6894ae 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -603,10 +603,7 @@ static int __ath9k_hw_init(struct ath_hw *ah) | |||
603 | 603 | ||
604 | ath9k_hw_init_mode_regs(ah); | 604 | ath9k_hw_init_mode_regs(ah); |
605 | 605 | ||
606 | 606 | if (!ah->is_pciexpress) | |
607 | if (ah->is_pciexpress) | ||
608 | ath9k_hw_aspm_init(ah); | ||
609 | else | ||
610 | ath9k_hw_disablepcie(ah); | 607 | ath9k_hw_disablepcie(ah); |
611 | 608 | ||
612 | if (!AR_SREV_9300_20_OR_LATER(ah)) | 609 | if (!AR_SREV_9300_20_OR_LATER(ah)) |
@@ -621,6 +618,9 @@ static int __ath9k_hw_init(struct ath_hw *ah) | |||
621 | if (r) | 618 | if (r) |
622 | return r; | 619 | return r; |
623 | 620 | ||
621 | if (ah->is_pciexpress) | ||
622 | ath9k_hw_aspm_init(ah); | ||
623 | |||
624 | r = ath9k_hw_init_macaddr(ah); | 624 | r = ath9k_hw_init_macaddr(ah); |
625 | if (r) { | 625 | if (r) { |
626 | ath_err(common, "Failed to initialize MAC address\n"); | 626 | ath_err(common, "Failed to initialize MAC address\n"); |