diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-26 11:07:40 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-04-02 10:38:57 +0200 |
commit | 0d0ae293d07ca36f1245ec2c5933a1c6e255ecfb (patch) | |
tree | fe032d272804cff0bb7b570f7fcc38f17634946c | |
parent | 61e0de057dc4a3e9be25335e0c36a3163cddb9d1 (diff) | |
download | barebox-0d0ae293d07ca36f1245ec2c5933a1c6e255ecfb.tar.gz barebox-0d0ae293d07ca36f1245ec2c5933a1c6e255ecfb.tar.xz |
pci: pcie-dw-rockchip: wait for link
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.
Link: https://lore.barebox.org/20240326100746.471532-11-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/pci/pcie-dw-rockchip.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |