]> 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)
commitefcd698d7e52737575b5ce9c51d9ea0d4f6a8b22
treea9578e55a122e03ebec0354dd08f88a5d1abdf3c
parent79181434adc37876e635c79937f64d2e050734ec
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