]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbae446574f8a29dcb2e285f664132f1993b4ee95
tree5b5d675caf1688ac86b454660be910a24252a93b
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
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