[PATCH 10/16] pci: pcie-dw-rockchip: wait for link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxxxxx>
 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)
 	gpiod_set_value(rockchip->rst_gpio, 1);
+	dw_pcie_wait_for_link(pci);
 	return 0;

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux