mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Joe Lawrence <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: David Bulkow <[email protected]> Acked-by: Myron Stowe <[email protected]>
This commit is contained in:
parent
84fb913c43
commit
a26d5ecb32
1 changed files with 3 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue