diff options
Diffstat (limited to 'drivers/pci/pcie/aspm.c')
-rw-r--r-- | drivers/pci/pcie/aspm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 23fabb303e82..26fd39caebc5 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c | |||
@@ -48,8 +48,6 @@ struct pcie_link_state { | |||
48 | u32 clkpm_enabled:1; /* Current Clock PM state */ | 48 | u32 clkpm_enabled:1; /* Current Clock PM state */ |
49 | u32 clkpm_default:1; /* Default Clock PM state by BIOS */ | 49 | u32 clkpm_default:1; /* Default Clock PM state by BIOS */ |
50 | 50 | ||
51 | u32 has_switch:1; /* Downstream has switches? */ | ||
52 | |||
53 | /* Latencies */ | 51 | /* Latencies */ |
54 | struct aspm_latency latency; /* Exit latency */ | 52 | struct aspm_latency latency; /* Exit latency */ |
55 | /* | 53 | /* |
@@ -595,7 +593,6 @@ static struct pcie_link_state *pcie_aspm_setup_link_state(struct pci_dev *pdev) | |||
595 | INIT_LIST_HEAD(&link->children); | 593 | INIT_LIST_HEAD(&link->children); |
596 | INIT_LIST_HEAD(&link->link); | 594 | INIT_LIST_HEAD(&link->link); |
597 | link->pdev = pdev; | 595 | link->pdev = pdev; |
598 | link->has_switch = pcie_aspm_downstream_has_switch(link); | ||
599 | if (pdev->pcie_type == PCI_EXP_TYPE_DOWNSTREAM) { | 596 | if (pdev->pcie_type == PCI_EXP_TYPE_DOWNSTREAM) { |
600 | struct pcie_link_state *parent; | 597 | struct pcie_link_state *parent; |
601 | parent = pdev->bus->parent->self->link_state; | 598 | parent = pdev->bus->parent->self->link_state; |
@@ -655,7 +652,7 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev) | |||
655 | * initialization will config the whole hierarchy. But we must | 652 | * initialization will config the whole hierarchy. But we must |
656 | * make sure BIOS doesn't set unsupported link state. | 653 | * make sure BIOS doesn't set unsupported link state. |
657 | */ | 654 | */ |
658 | if (link->has_switch) { | 655 | if (pcie_aspm_downstream_has_switch(link)) { |
659 | state = pcie_aspm_check_state(link, link->aspm_default); | 656 | state = pcie_aspm_check_state(link, link->aspm_default); |
660 | __pcie_aspm_config_link(link, state); | 657 | __pcie_aspm_config_link(link, state); |
661 | } else { | 658 | } else { |