Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e822df7 authored by Shaohua Li's avatar Shaohua Li Committed by Jesse Barnes
Browse files

PCI: disable ASPM on VIA root-port-under-bridge configurations



VIA has a strange chipset, it has root port under a bridge. Disable ASPM
for such strange chipset.

Cc: stable@kernel.org
Tested-by: default avatarWolfgang Denk <wd@denx.de>
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 9e9f46c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -638,6 +638,10 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev)
	if (pdev->pcie_type != PCI_EXP_TYPE_ROOT_PORT &&
		pdev->pcie_type != PCI_EXP_TYPE_DOWNSTREAM)
		return;
	/* VIA has a strange chipset, root port is under a bridge */
	if (pdev->pcie_type == PCI_EXP_TYPE_ROOT_PORT &&
		pdev->bus->self)
		return;
	down_read(&pci_bus_sem);
	if (list_empty(&pdev->subordinate->devices))
		goto out;