]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7057a652df8842bff92e3e562c997ee2dcb6f87
treea9578e55a122e03ebec0354dd08f88a5d1abdf3c
parentcb75a9f42cf23eac3966477c9da49968c9436e92
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