[U-Boot] U-boot hangs on imx6 pci driver

"David Müller (ELSOFT AG)"
2014-05-30T07:04:50Z

Fabio Estevam wrote:
> On Wed, May 28, 2014 at 4:40 AM, "David M?ller (ELSOFT AG)"
> <d.mueller@elsoft.ch> wrote:
>> I use an additional delay in imx6_add_pcie_port() as a workaround so far.
>
> How much of additional delay? Could you please share your patch?

diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index ee08250..1accc0e 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -503,6 +532,9 @@ static int imx6_add_pcie_port(struct pcie_port *pp,
pp->root_bus_nr = -1;
pp->ops = &imx6_pcie_host_ops;

+ /* FIXME kernel hangs without this delay */
+ usleep_range(20000, 25000);
+
spin_lock_init(&pp->conf_lock);
ret = dw_pcie_host_init(pp);
if (ret) {

Dave