Commit 29d42b1c authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Sushrut Shree Trivedi
Browse files

BACKPORT: PCI/ASPM: Disable L1 before configuring L1 Substates

Per PCIe r6.1, sec 5.5.4, L1 must be disabled while setting ASPM L1 PM
Substates enable bits.  Previously this was enforced by clearing
PCI_EXP_LNKCTL_ASPMC before calling pci_restore_aspm_l1ss_state().

Move the L1 (and L0s, although that doesn't seem required) disable into
pci_restore_aspm_l1ss_state() itself so it's closer to the code that
depends on it.

Change-Id: If7a22c2bf92d09d99623d5089d4e3e2992724f05
Link: https://lore.kernel.org/r/20240223213733.GA115410@bhelgaas


Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>

BUG: 371115070
Change-Id: If7a22c2bf92d09d99623d5089d4e3e2992724f05
(cherry picked from commit 64dbb2d7)
[sushrut: Included necessary headers to use FIELD_GET()]
Signed-off-by: default avatarSushrut Shree Trivedi <quic_sushruts@quicinc.com>
parent eae8cec7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment