aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2008-07-22 22:32:31 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-28 17:56:57 -0400
commit149e16372a2066c5474d8a8db9b252afd57eb427 (patch)
tree075a46f0672739fdab18d2f1e5f06080160de8b0 /drivers/pci/probe.c
parent5fde244d39b88625ac578d83e6625138714de031 (diff)
PCI: disable ASPM on pre-1.1 PCIe devices
Disable ASPM on pre-1.1 PCIe devices, as many of them don't implement it correctly. Tested-by: Jack Howarth <howarth@bromo.msbb.uc.edu> Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 203630065839..7098dfb07449 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1057,7 +1057,8 @@ int pci_scan_slot(struct pci_bus *bus, int devfn)
1057 } 1057 }
1058 } 1058 }
1059 1059
1060 if (bus->self) 1060 /* only one slot has pcie device */
1061 if (bus->self && nr)
1061 pcie_aspm_init_link_state(bus->self); 1062 pcie_aspm_init_link_state(bus->self);
1062 1063
1063 return nr; 1064 return nr;