[PATCH 10/16] pci: pcie-dw-rockchip: wait for link
Sascha Hauer
s.hauer at pengutronix.de
Tue Mar 26 03:07:40 PDT 2024
Wait for the link to be established before continuing the probe. While
in some configurations the link might come up fast enough, on a RK3568
no device was found without it.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/pci/pcie-dw-rockchip.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/pcie-dw-rockchip.c b/drivers/pci/pcie-dw-rockchip.c
index cc771e2cae..22f41cc6bb 100644
--- a/drivers/pci/pcie-dw-rockchip.c
+++ b/drivers/pci/pcie-dw-rockchip.c
@@ -122,6 +122,8 @@ static int rockchip_pcie_start_link(struct dw_pcie *pci)
mdelay(100);
gpiod_set_value(rockchip->rst_gpio, 1);
+ dw_pcie_wait_for_link(pci);
+
return 0;
}
--
2.39.2
More information about the barebox
mailing list