This 2 patches fix the issue before and after retrain link.Ley Foon Tan (2): PCI: altera: check link status before retrain link PCI: altera: Polling for link up status after retrain the link drivers/pci/host/pcie-altera.c | 48 +++++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 17 deletions(-)-- 1.8.2.1