]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit01c076732e8288485c22ef50f20949455a783ca9
treed97e1af85a190fa82a4266968f6ca3f46a59b0b5
parenta0601a47053714eecec726aea5ebcd829f817497
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