PCI: imx6: Delay enabling reference clock for SS until it stabilizes
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 Aug 2014 06:36:40 +0000 (23:36 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Sep 2014 17:16:41 +0000 (11:16 -0600)
commit3fce0e882f61513c45c67e15bd0fde03341b58a5
tree4feaa4c4e29b848e1aa8a1c1d0c643194e193fd7
parent61da50da903fdfc00b40f3b3e3abeca7ae51b591
PCI: imx6: Delay enabling reference clock for SS until it stabilizes

According to the IMX6 reference manuals, REF_SSP_EN (Reference clock enable
for SS function) must remain deasserted until the reference clock is
running at the appropriate frequency.

Delay enabling the reference clock for the SS function until it has
stabilized.  This prevents a high link failure rate (>5%) on certain IMX6
boards at various temperatures.

[bhelgaas: reword changelog slightly]
Tested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c