diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-12-16 21:19:06 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-08 16:28:48 +0100 |
commit | c6e81bac2b4c75c9c4ba769d4a9e26e7e1b18440 (patch) | |
tree | 0a5248aeb1242c548f73e0d4b32ee779d4e1ea99 /drivers/pci/pci-imx6.c | |
parent | 77a547a94efacb9d326aeaa67200de8baa1aff79 (diff) | |
download | barebox-c6e81bac2b4c75c9c4ba769d4a9e26e7e1b18440.tar.gz barebox-c6e81bac2b4c75c9c4ba769d4a9e26e7e1b18440.tar.xz |
PCI: imx6: Remove redundant "Link never came up" message
Port of a Linux commit caf3f562e1161a86bd48a4c4c33af89d3693c658
When a PCI card is not connected, the following messages are seen on mx6:
imx6q-pcie 1ffc000.pcie: phy link never came up
imx6q-pcie 1ffc000.pcie: Link never came up
The first one comes from the pcie-designware.c core file, so remove
the redundant one from the imx6 driver.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/pci/pci-imx6.c')
-rw-r--r-- | drivers/pci/pci-imx6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/pci-imx6.c b/drivers/pci/pci-imx6.c index d72abe3a30..a9a4be927b 100644 --- a/drivers/pci/pci-imx6.c +++ b/drivers/pci/pci-imx6.c @@ -460,10 +460,8 @@ static int imx6_pcie_establish_link(struct imx6_pcie *imx6_pcie) writel(gpr12, imx6_pcie->iomuxc_gpr + IOMUXC_GPR12); ret = imx6_pcie_wait_for_link(imx6_pcie); - if (ret) { - dev_info(dev, "Link never came up\n"); + if (ret) goto err_reset_phy; - } if (imx6_pcie->link_gen == 2) { |