]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: designware: Check LTSSM training bit before deciding link is up
authorJisheng Zhang <jszhang@marvell.com>
Wed, 17 Aug 2016 20:57:37 +0000 (15:57 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Aug 2016 13:00:44 +0000 (08:00 -0500)
commit1502b35b1e55c724c43982c328d5f32104cfdd1f
treed97e1af85a190fa82a4266968f6ca3f46a59b0b5
parente56937e311c1603f5f10ce8bcbcca9e63f87599e
PCI: designware: Check LTSSM training bit before deciding link is up

The link may be up but still in link training.  In this case, we can't
think the link is up and operating correctly.  Teach dw_pcie_link_up() to
be aware of the PCIE_PHY_DEBUG_R1_LINK_IN_TRAINING bit.

Also rewrite PCIE_PHY_DEBUG_R1_LINK_UP definition so that it's consistent
with other macros.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
drivers/pci/host/pcie-designware.c