From: Richard Zhu Date: Fri, 6 Sep 2013 04:33:31 +0000 (+0800) Subject: ENGR00278492 imx: pcie: delay is required after REF_CLK_EN is set X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1976e889408175354a19824375bc5137f43ef14e;p=karo-tx-linux.git 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 --- 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);