]> git.sur5r.net Git - u-boot/commit
powerpc/usb: fix bug of CPU hang when missing USB PHY clock
authorShengzhou Liu <Shengzhou.Liu@freescale.com>
Mon, 22 Oct 2012 05:18:24 +0000 (13:18 +0800)
committerMarek Vasut <marex@denx.de>
Mon, 22 Oct 2012 06:25:12 +0000 (08:25 +0200)
commit047cea3655cf34ce1f911c282e82598ded998dd2
tree64b4368d01fb17c1e4745977cc73dba0d8fca93a
parent8b8d779dacc149be0607dfc1b399bbdb62e57108
powerpc/usb: fix bug of CPU hang when missing USB PHY clock

when missing USB PHY clock, u-boot will hang during USB
initialization when issuing "usb start". We should check
USBGP[PHY_CLK_VALID] bit to avoid CPU hanging in this case.

Due to controller issue of PHY_CLK_VALID in ULPI mode, we set
USB_EN before checking PHY_CLK_VALID, otherwise PHY_CLK_VALID
doesn't work.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-fsl.c