Subject: [PATCH] PCI: Remove wrong check in disable aspm link We have BIOS that have aspm enabled, but need to disable in driver or quirk. OSC check could set aspm_disabled early before bus get scaned even. Acctually we don't need to check aspm_disabled in disable link, as we already have protection about link state following. Signed-off-by: Yinghai Lu diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index d320df6..8305221 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -724,9 +724,6 @@ static void __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem, struct pci_dev *parent = pdev->bus->self; struct pcie_link_state *link; - if (aspm_disabled && !force) - return; - if (!pci_is_pcie(pdev)) return;