File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1624,6 +1624,7 @@ static int pci_save_pcie_state(struct pci_dev *dev)
1624
1624
pcie_capability_read_word (dev , PCI_EXP_SLTCTL2 , & cap [i ++ ]);
1625
1625
1626
1626
pci_save_aspm_l1ss_state (dev );
1627
+ pci_save_ltr_state (dev );
1627
1628
1628
1629
return 0 ;
1629
1630
}
@@ -1634,6 +1635,12 @@ static void pci_restore_pcie_state(struct pci_dev *dev)
1634
1635
struct pci_cap_saved_state * save_state ;
1635
1636
u16 * cap , lnkctl ;
1636
1637
1638
+ /*
1639
+ * Restore max latencies (in the LTR capability) before enabling
1640
+ * LTR itself in PCI_EXP_DEVCTL2.
1641
+ */
1642
+ pci_restore_ltr_state (dev );
1643
+
1637
1644
save_state = pci_find_saved_cap (dev , PCI_CAP_ID_EXP );
1638
1645
if (!save_state )
1639
1646
return ;
@@ -1726,7 +1733,6 @@ int pci_save_state(struct pci_dev *dev)
1726
1733
if (i != 0 )
1727
1734
return i ;
1728
1735
1729
- pci_save_ltr_state (dev );
1730
1736
pci_save_dpc_state (dev );
1731
1737
pci_save_aer_state (dev );
1732
1738
pci_save_ptm_state (dev );
@@ -1827,12 +1833,6 @@ void pci_restore_state(struct pci_dev *dev)
1827
1833
if (!dev -> state_saved )
1828
1834
return ;
1829
1835
1830
- /*
1831
- * Restore max latencies (in the LTR capability) before enabling
1832
- * LTR itself (in the PCIe capability).
1833
- */
1834
- pci_restore_ltr_state (dev );
1835
-
1836
1836
pci_restore_pcie_state (dev );
1837
1837
pci_restore_pasid_state (dev );
1838
1838
pci_restore_pri_state (dev );
You can’t perform that action at this time.
0 commit comments