[RFC] PCI: pci-imx6: Add delay to workaround kernel hang
Shawn Guo
shawn.guo at freescale.com
Wed Jun 25 20:12:49 PDT 2014
On Tue, Jun 24, 2014 at 04:18:27PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
>
> When the mx6 PCI conctroller is initialized in the bootloader we see a kernel
> hang inside imx6_add_pcie_port().
>
> Adding a 30ms delay allows the kernel to boot.
We may not want to add a random delay into the driver before we
understand the root cause of the issue.
Do you see this issue with FSL kernel?
Shawn
>
> Suggested-by: David Müller <d.mueller at elsoft.ch>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
> I am happy to get feedback on how to properly fix this.
>
> Thanks
>
> drivers/pci/host/pci-imx6.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
> index a568efa..669f771 100644
> --- a/drivers/pci/host/pci-imx6.c
> +++ b/drivers/pci/host/pci-imx6.c
> @@ -507,6 +507,8 @@ static int __init imx6_add_pcie_port(struct pcie_port *pp,
> pp->root_bus_nr = -1;
> pp->ops = &imx6_pcie_host_ops;
>
> + usleep_range(25000, 30000);
> +
> ret = dw_pcie_host_init(pp);
> if (ret) {
> dev_err(&pdev->dev, "failed to initialize host\n");
> --
> 1.8.3.2
>
More information about the linux-arm-kernel
mailing list