Message ID | 20240704064352.42124-2-acelan.kao@canonical.com |
---|---|
State | New |
Headers | show |
Series | a critical typo in the code managing the ASPM settings for PCI Express devices | expand |
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 42fe18e4f8a9..a8c20f2e3a46 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -177,8 +177,8 @@ void pci_restore_aspm_l1ss_state(struct pci_dev *pdev) /* Restore L0s/L1 if they were enabled */ if (FIELD_GET(PCI_EXP_LNKCTL_ASPMC, clnkctl) || FIELD_GET(PCI_EXP_LNKCTL_ASPMC, plnkctl)) { - pcie_capability_write_word(parent, PCI_EXP_LNKCTL, clnkctl); - pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, plnkctl); + pcie_capability_write_word(parent, PCI_EXP_LNKCTL, plnkctl); + pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, clnkctl); } }