PCI/ASPM: Don't retrain link if ASPM not possible
authorDavid Daney <david.daney@cavium.com>
Thu, 17 Nov 2016 22:25:01 +0000 (14:25 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Dec 2016 20:44:22 +0000 (14:44 -0600)
commite53f9a28bee35932a0ae4d2ec2784f55491ec6d3
treeef9e649c3cb4156ac6507fabd3f045c788cd8566
parentfc4f57fadea906648a4ccae4c3ff4bfd7f277649
PCI/ASPM: Don't retrain link if ASPM not possible

Some (defective) PCIe devices are not able to reliably do link retraining.

Check to see if ASPM is possible between link partners before configuring
common clocking, and doing the resulting link retraining.  If ASPM is not
possible, there is no reason to risk losing access to a device due to an
unnecessary link retraining.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c