Merge "PCIe: ASPM: Save/restore ASPM-L1SS controls in reverse order"

This commit is contained in:
qctecmdr 2021-05-06 22:22:58 -07:00 • committed by Gerrit - the friendly Code Review server
commit 5aeb2f7dfe

View file

@ -761,8 +761,8 @@ void pci_save_aspm_l1ss_state(struct pci_dev *dev)
return;
cap = (u32 *)&save_state->cap.data[0];
pci_read_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL1, cap++);
pci_read_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL2, cap++);
pci_read_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL1, cap);
}
void pci_restore_aspm_l1ss_state(struct pci_dev *dev)
@ -780,8 +780,8 @@ void pci_restore_aspm_l1ss_state(struct pci_dev *dev)
return;
cap = (u32 *)&save_state->cap.data[0];
pci_write_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL1, *cap++);
pci_write_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL2, *cap++);
pci_write_config_dword(dev, aspm_l1ss + PCI_L1SS_CTL1, *cap);
}
#endif