OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:16:11 +0000 (22:16 +0100)
commitdb94a1ebabc4eb3791d20b8a3eccf2d29d1f77a4
tree4ed45b932493f36fe413000f2229658ebe03aa7c
parent704a120d8868cbe670830826b997c2ecdec32041
PCI: altera: Poll for link training status after retraining the link

commit 411dc32d8810e0a204c799ce5c97cb56990de1cb upstream.

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>
Cc: Claudius Heine <claudius.heine.ext@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/pcie-altera.c