[PATCH] PCI: dwc/meson: do not fail on wait linkup timeout
From: Neil Armstrong
Date: Mon Sep 21 2020 - 03:50:02 EST
When establish link timeouts, probe fails but the error is unrelated since
the PCIe controller has been probed succesfully.
Align with most of the other dw-pcie drivers and ignore return of
dw_pcie_wait_for_link() in the host_init callback.
Signed-off-by: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
---
drivers/pci/controller/dwc/pci-meson.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/pci/controller/dwc/pci-meson.c b/drivers/pci/controller/dwc/pci-meson.c
index 33deb290c4e7..846275e68fbc 100644
--- a/drivers/pci/controller/dwc/pci-meson.c
+++ b/drivers/pci/controller/dwc/pci-meson.c
@@ -383,10 +383,7 @@ static int meson_pcie_host_init(struct pcie_port *pp)
pp->bridge->ops = &meson_pci_ops;
- ret = meson_pcie_establish_link(mp);
- if (ret)
- return ret;
-
+ meson_pcie_establish_link(mp);
dw_pcie_msi_init(pp);
return 0;
--
2.22.0