PCI/ASPM: Set ASPM_STATE_L1 when driver enables L1.1 or L1.2
authorAjay Agarwal <ajayagarwal@google.com>
Thu, 4 May 2023 11:12:59 +0000 (16:42 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 19 May 2023 15:26:49 +0000 (10:26 -0500)
commit80950a546089690ff6f02ca15930b9be695a668a
tree0fbca750e6c95efd4f50b69bac6f0738b19070db
parent25edb25d7972414022c1fa098e2d85876bd7fab2
PCI/ASPM: Set ASPM_STATE_L1 when driver enables L1.1 or L1.2

Previously pci_enable_link_state(PCIE_LINK_STATE_L1_1) enabled only
ASPM_STATE_L1_1 and did not enable ASPM_STATE_L1.  The L1.1 state only
works when L1 is enabled, so enable ASPM_STATE_L1 in addition, and do the
same for L1.2.

The only current caller is vmd_pm_enable_quirk(), which enables *all* ASPM
states, so this should have no functional effect.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20230504111301.229358-4-ajayagarwal@google.com
Signed-off-by: Ajay Agarwal <ajayagarwal@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c