PCI: altera: Poll for link training status after retraining the link
authorLey Foon Tan <lftan@altera.com>
Mon, 15 Aug 2016 06:06:02 +0000 (14:06 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Aug 2016 20:12:53 +0000 (15:12 -0500)
commit411dc32d8810e0a204c799ce5c97cb56990de1cb
tree5b5d675caf1688ac86b454660be910a24252a93b
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
PCI: altera: Poll for link training status after retraining the link

Poll for link training status is cleared before poll for link up status.
This can help to get the reliable link up status, especially when PCIe is
in Gen 3 speed.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c