OSDN Git Service

PCI: altera: Poll for link up status after retraining the link
authorLey Foon Tan <lftan@altera.com>
Tue, 21 Jun 2016 08:53:13 +0000 (16:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:16:11 +0000 (22:16 +0100)
commit704a120d8868cbe670830826b997c2ecdec32041
tree5f6afa1ed4e28373bc8ea9139a820a1065812f68
parentcb3ff0382e582c823cbd2ba549b7754c6416ab78
PCI: altera: Poll for link up status after retraining the link

commit 3a928e98a833e1a470a60d2fedf3c55502185fb7 upstream.

Some PCIe devices take a long time to reach link up state after retrain.
Poll for link up status after retraining the link.  This is to make sure
the link is up before we access configuration space.

[bhelgaas: changelog]
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