]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ASPM: Remove pcie_aspm_pm_state_change()
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 11 Jul 2022 23:07:01 +0000 (18:07 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Jul 2022 15:08:26 +0000 (10:08 -0500)
commit25e468faf941c7e30d07ae303ad180ab5ffdf2d1
tree53ca00eb37db11a2c3c719b388500652ecb22393
parentcf1710d1388cf5bd81996b258399c4907d27006e
PCI/ASPM: Remove pcie_aspm_pm_state_change()

pcie_aspm_pm_state_change() was introduced at the inception of PCIe ASPM
code, but it can cause some issues. For instance, when ASPM config is
changed via sysfs, those changes won't persist across power state change
because pcie_aspm_pm_state_change() overwrites them.

Also, if the driver restores L1SS [1] after system resume, the restored
state will also be overwritten by pcie_aspm_pm_state_change().

Remove pcie_aspm_pm_state_change().  If there's any hardware that really
needs it to function, a quirk can be used instead.

[1] https://lore.kernel.org/linux-pci/20220201123536.12962-1-vidyas@nvidia.com/
Link: https://lore.kernel.org/r/20220509073639.2048236-1-kai.heng.feng@canonical.com
[bhelgaas: remove additional pcie_aspm_pm_state_change() call in
pci_set_low_power_state(), added by
df103ceaff28 ("PCI/PM: Split pci_raw_set_power_state()") and moved by
695f877e11e8 ("PCI/PM: Relocate pci_set_low_power_state()")]
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/aspm.c