linux/drivers/pci/pcie
Andrew Patterson 987a4c783a PCI: Use msleep instead of cpu_relax during ASPM link retraining
The cpu_relax() function can be a noop on certain architectures like
IA-64 when CPU threads are disabled, so use msleep instead during link
retraining busy/wait loop.

Introduce define LINK_RETRAIN_TIMEOUT instead of hard-coding timeout in
pcie_aspm_configure_common_clock.

Use time_after() to avoid jiffy wraparound when checking for expired
timeout.

After timeout expires, recheck link status register link training bit
instead of checking for expired timeout to avoid possible false
positive.

Note that Matthew Wilcox came up with the first rough version of this
patch.

Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-01-07 11:13:28 -08:00
..
aer PCI hotplug: aerdrv: fix a typo in error message 2009-01-07 11:12:41 -08:00
Kconfig PCI Express ASPM support should default to 'No' 2008-04-23 15:41:14 -07:00
Makefile PCI: add PCI Express ASPM support 2008-04-20 21:47:03 -07:00
aspm.c PCI: Use msleep instead of cpu_relax during ASPM link retraining 2009-01-07 11:13:28 -08:00
portdrv.h PCI: fix AER capability check 2008-10-20 11:01:52 -07:00
portdrv_bus.c PCI: PCIe portdrv: Rearrange code so that related things are together 2009-01-07 11:13:27 -08:00
portdrv_core.c PCI: PCIe portdrv: Add kerneldoc comments to remining core funtions 2009-01-07 11:13:27 -08:00
portdrv_pci.c PCI PM: Split PCI Express port suspend-resume 2009-01-07 11:13:08 -08:00