ARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit
authorNathan Connell <w14185@motorola.com>
Mon, 25 Apr 2011 19:17:13 +0000 (14:17 -0500)
committerBenoit Goby <benoit@android.com>
Mon, 25 Apr 2011 22:09:35 +0000 (15:09 -0700)
commit82e4366278f9037761488e9b7e03eaff4d90c9c9
treeb40157bee5733e8717bbe683add73c8cde767530
parentbaa00db52b4c0a2ce1c9adf64338dfe8754ef372
ARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit

When enabling the external ULPI PHY, the clock from the PHY must be
valid before the USB_SUSP_CLR bit is cleared in the USB2 controller
interface register.  If the clock from the PHY is not valid when
this bit is cleared, the AHB clock to the host controller may be
stopped, preventing any access to the host controller.

Replace hard-coded delay with poll for USB_PHY_CLK_VALID bit.
Signed-off-by: Nathan Connell <w14185@motorola.com>
Change-Id: I24fa7575641f20ffdba7737776a81ba453f54395
Signed-off-by: Nathan Connell <w14185@motorola.com>
arch/arm/mach-tegra/usb_phy.c