]> git.baikalelectronics.ru Git - kernel.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)
commitd5909b138275a79b2a66215b7e82d225f8c61f11
tree183273b78f61a74c3ca54be92a0fff176cb2dbcc
parent49182d999ee0dc57f80f333ec0a6febc704e00cf
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