]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Wait for clocks to stabilize after ref_en
authorRichard Zhu <r65037@freescale.com>
Mon, 27 Oct 2014 05:17:32 +0000 (13:17 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 29 Oct 2014 16:11:54 +0000 (10:11 -0600)
commit5eaa03283b2fb18e0c5751a2937e60a00d2fc583
tree48c0faa3757189454a4fac12215794ddc8301ba2
parent2ff4e74f38cdbd8e39591ab5f75e71677f037dc9
PCI: imx6: Wait for clocks to stabilize after ref_en

For boards without a reset GPIO we skip the delay between enabling the
pcie_ref_clk and touching the RC registers for configuration.  This hangs
the system if there isn't a proper delay to ensure the clocks are settled
in the DW PCIe core.

Also iMX6Q always needs an additional 10us delay to make sure the reset is
propagated through the core, as we don't have an explicitly controlled
reset input on this SoC.

This fixes a problem with 60b5f1454cde ("PCI: imx6: Delay enabling
reference clock for SS until it stabilizes"): the kernel doesn't boot on
systems that don't pass the PCI GPIO reset in the DTB.  This regression
affects mx6 nitrogen boards.

[bhelgaas: add regression info in changelog]
Fixes: 60b5f1454cde ("PCI: imx6: Delay enabling reference clock for SS until it stabilizes")
Reported-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Richard Zhu <richard.zhu@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c