]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/ASPM: Cache L0s/L1 Supported so advertised link states can be overridden
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 10 Nov 2025 22:22:25 +0000 (16:22 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2025 00:47:16 +0000 (18:47 -0600)
commit4495bffd86ba0fdabfaef0c41d12f68ec2a1e05b
tree3784f246ab60cabd1a5a690cab2233f49116c5ad
parent3a8660878839faadb4f1a6dd72c3179c1df56787
PCI/ASPM: Cache L0s/L1 Supported so advertised link states can be overridden

Defective devices sometimes advertise support for ASPM L0s or L1 states
even if they don't work correctly.

Cache the L0s Supported and L1 Supported bits early in enumeration so
HEADER quirks can override the ASPM states advertised in Link Capabilities
before pcie_aspm_cap_init() enables ASPM.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Link: https://patch.msgid.link/20251110222929.2140564-2-helgaas@kernel.org
drivers/pci/pcie/aspm.c
drivers/pci/probe.c
include/linux/pci.h