aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/aspm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 05b8e25b551b..5a01fc7fbf05 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -657,8 +657,10 @@ void pcie_aspm_exit_link_state(struct pci_dev *pdev)
657 free_link_state(link); 657 free_link_state(link);
658 658
659 /* Recheck latencies and configure upstream links */ 659 /* Recheck latencies and configure upstream links */
660 pcie_update_aspm_capable(root); 660 if (parent_link) {
661 pcie_config_aspm_path(parent_link); 661 pcie_update_aspm_capable(root);
662 pcie_config_aspm_path(parent_link);
663 }
662out: 664out:
663 mutex_unlock(&aspm_lock); 665 mutex_unlock(&aspm_lock);
664 up_read(&pci_bus_sem); 666 up_read(&pci_bus_sem);