From 1976e889408175354a19824375bc5137f43ef14e Mon Sep 17 00:00:00 2001 From: Richard Zhu Date: Fri, 6 Sep 2013 12:33:31 +0800 Subject: [PATCH] ENGR00278492 imx: pcie: delay is required after REF_CLK_EN is set delay is required after REF_CLK_EN of GPR1 is set. otherwise, system would be hang when access the registers of PCIe RC when the EARLY_PRINTK is not enabled. Signed-off-by: Richard Zhu --- drivers/pci/host/pcie-imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/pcie-imx.c b/drivers/pci/host/pcie-imx.c index 192b2f4ac0b0..22af44af46d8 100644 --- a/drivers/pci/host/pcie-imx.c +++ b/drivers/pci/host/pcie-imx.c @@ -468,6 +468,7 @@ static int __init imx_pcie_probe(struct platform_device *pdev) regmap_update_bits(imx_pcie->gpr, IOMUXC_GPR1, IMX6Q_GPR1_PCIE_REF_CLK_EN, 1 << 16); + usleep_range(1000, 2000); /* PCIE RESET, togle the external card's reset */ imx_pcie->rst_gpio = of_get_named_gpio(np, "rst-gpios", 0); -- 2.39.5