Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265693
b: refs/heads/master
c: 22c55e6
h: refs/heads/master
i:
  265691: ddf47a8
v: v3
  • Loading branch information
John W. Linville committed Aug 26, 2011
1 parent 30878eb commit c20d3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea5a08cfa5fe9d10333eb7d65a7158ab766dae93
refs/heads/master: 22c55e6e7ed46ad3734c206d90b5ccba3b318d22
8 changes: 2 additions & 6 deletions trunk/drivers/net/wireless/ath/ath9k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ static void ath_pci_aspm_init(struct ath_common *common)
return;

parent = pdev->bus->self;
if (!parent)
return;

if (ah->btcoex_hw.scheme != ATH_BTCOEX_CFG_NONE) {
/* Bluetooth coexistance requires disabling ASPM. */
Expand All @@ -126,9 +128,6 @@ static void ath_pci_aspm_init(struct ath_common *common)
* Both upstream and downstream PCIe components should
* have the same ASPM settings.
*/
if (!parent)
return;

pos = pci_pcie_cap(parent);
pci_read_config_byte(parent, pos + PCI_EXP_LNKCTL, &aspm);
aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
Expand All @@ -137,9 +136,6 @@ static void ath_pci_aspm_init(struct ath_common *common)
return;
}

if (!parent)
return;

pos = pci_pcie_cap(parent);
pci_read_config_byte(parent, pos + PCI_EXP_LNKCTL, &aspm);
if (aspm & (PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1)) {
Expand Down

0 comments on commit c20d3f1

Please sign in to comment.