]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: altera: Check link status before retrain link
authorLey Foon Tan <lftan@altera.com>
Tue, 21 Jun 2016 08:53:12 +0000 (16:53 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2016 20:58:02 +0000 (15:58 -0500)
commitc622032ebc538cb3869c312ae3ad235a99da84b6
tree183273b78f61a74c3ca54be92a0fff176cb2dbcc
parentf8be11ae3d2c9a1338da37ff91ff4c65922d21be
PCI: altera: Check link status before retrain link

Check the link status before retraining.  If the link is not up, don't
bother trying to retrain it.

[bhelgaas: split code move to separate patch, changelog]
Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c