From 05060535f0a7401b92177c2417b7e3eb8c3317a8 Mon Sep 17 00:00:00 2001 From: Minghuan Lian Date: Fri, 11 Sep 2015 17:19:59 +0800 Subject: 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 Signed-off-by: Jia Hongtao 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 -- cgit v0.10.2