From: Joe Lawrence Date: Tue, 15 Jan 2013 20:31:28 +0000 (-0500) Subject: PCI/ASPM: Don't touch ASPM if forcibly disabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a26d5ecb3201c11e03663a8f4a7dedc0c5f85c07;p=linux-beck.git PCI/ASPM: Don't touch ASPM if forcibly disabled Don't allocate and track PCIe ASPM state when "pcie_aspm=off" is specified on the kernel command line. Based-on-patch-from: Matthew Garrett Signed-off-by: Joe Lawrence Signed-off-by: Bjorn Helgaas Reviewed-by: David Bulkow Acked-by: Myron Stowe --- diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index ca44115ca1f1..e8a19772cf52 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -556,6 +556,9 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev) struct pcie_link_state *link; int blacklist = !!pcie_aspm_sanity_check(pdev); + if (!aspm_support_enabled) + return; + if (!pci_is_pcie(pdev) || pdev->link_state) return; if (pci_pcie_type(pdev) != PCI_EXP_TYPE_ROOT_PORT &&