PCI/ASPM: Save L1 PM Substates Capability for suspend/resume
authorVidya Sagar <vidyas@nvidia.com>
Tue, 13 Sep 2022 13:18:22 +0000 (18:48 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 5 Oct 2022 01:35:40 +0000 (20:35 -0500)
commit4ff116d0d5fd8a025604b0802d93a2d5f4e465d1
treea9578e55a122e03ebec0354dd08f88a5d1abdf3c
parent5e85eba6f50dc288c22083a7e213152bcc4b8208
PCI/ASPM: Save L1 PM Substates Capability for suspend/resume

Previously the L1 PM Substates Control Registers (CTL1 and CTL2) weren't
saved and restored during suspend/resume leading to the L1 PM Substates
configuration being lost post-resume.

Save the L1 PM Substates Control Registers so that the configuration is
retained post-resume.

[bhelgaas: drop pci_is_pcie() testing; we can rely on pci_configure_ltr()
having already done that]
Link: https://lore.kernel.org/r/20220913131822.16557-3-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/aspm.c