diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-07-23 02:32:31 (GMT) |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-28 21:56:57 (GMT) |
commit | 149e16372a2066c5474d8a8db9b252afd57eb427 (patch) | |
tree | 075a46f0672739fdab18d2f1e5f06080160de8b0 /drivers/pci/probe.c | |
parent | 5fde244d39b88625ac578d83e6625138714de031 (diff) | |
download | linux-fsl-qoriq-149e16372a2066c5474d8a8db9b252afd57eb427.tar.xz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 2036300..7098dfb 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) } } - if (bus->self) + /* only one slot has pcie device */ + if (bus->self && nr) pcie_aspm_init_link_state(bus->self); return nr; |