PCI: layerscape: Change to use the DWC common link-up check function
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 24 Dec 2021 09:40:00 +0000 (17:40 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 5 Jan 2022 15:23:15 +0000 (15:23 +0000)
commitd23f0c11aca27d3f599d33b67856bf8374b62cc4
tree79f603728a07d02cd381035bc873d6b0a090d650
parent178e244cb6e209971b0ded9977e5146b73fe1f45
PCI: layerscape: Change to use the DWC common link-up check function

The current Layerscape PCIe driver directly uses the physical layer
LTSSM code to check the link-up state, which treats the > L0 states
as link-up. This is not correct, since there is not explicit map
between link-up state and LTSSM. So this patch changes to use the
DWC common link-up check function.

Link: https://lore.kernel.org/r/20211224094000.8513-1-Zhiqiang.Hou@nxp.com
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/dwc/pci-layerscape.c