summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinghuan Lian <Minghuan.Lian@freescale.com>2015-09-11 09:19:59 (GMT)
committerMinghuan Lian <Minghuan.Lian@freescale.com>2015-11-02 09:54:22 (GMT)
commit05060535f0a7401b92177c2417b7e3eb8c3317a8 (patch)
treeef8dd4464c43a89c736b05fb89aa13efe032e70c
parente03bbdd315a34dbbe37675be15e6add2e96675a5 (diff)
downloadlinux-fsl-qoriq-05060535f0a7401b92177c2417b7e3eb8c3317a8.tar.xz
pci/layerscape: Do not check link status
The PCIe controller should be fully initialized in spite of link status controller and the designware driver will check it before accessing the PCIe device. So we do not need to check link status and the patch removed the related code. Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
-rw-r--r--drivers/pci/host/pci-layerscape.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c
index c5633cf..6d6b420 100644
--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -137,15 +137,6 @@ static void ls_pcie_host_init(struct pcie_port *pp)
dw_pcie_setup_rc(pp);
- while (!ls_pcie_link_up(pp)) {
- usleep_range(100, 1000);
- count++;
- if (count >= 200) {
- dev_err(pp->dev, "phy link never came up\n");
- return;
- }
- }
-
if (of_device_is_compatible(pcie->dev->of_node, "fsl,ls1021a-pcie")) {
/*
* LS1021A Workaround for internal TKT228622