arm/tegra: add timeout to PCIe PLL lock detection loop
commit795d5fd4b8b06944976c95e8592e17e2d415aa81
authorDmitry Artamonow <mad_soft@inbox.ru>
Tue, 6 Mar 2012 08:45:43 +0000 (6 12:45 +0400)
committerOlof Johansson <olof@lixom.net>
Wed, 7 Mar 2012 22:39:55 +0000 (7 14:39 -0800)
tree70703693cb917fbe780303f10d813d0cfcf2649b
parent448b98047c61dd612fc3a41a2b9479da77ace27d
arm/tegra: add timeout to PCIe PLL lock detection loop

Tegra PCIe driver waits for PLL to lock using busy loop.
If PLL fails to lock for some reason, this leads to silent lockup
while booting (as PCIe code is not modular).

Fix by adding timeout, so if PLL doesn't lock in a couple
of seconds, just PCIe driver fails and machine continues to boot.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/pcie.c