usb: gadget: Fix tegra udc in OTG mode
authorBenoit Goby <benoit@android.com>
Thu, 22 Jul 2010 01:05:06 +0000 (18:05 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:16 +0000 (16:27 -0700)
commit288b58e155306231dfb5eccb3220e58bbc953b1e
tree393623597dc259e517a38083bd1b1452dce474ba
parent2e39427ef65df3de4d7bd08419d7e67517f751eb
usb: gadget: Fix tegra udc in OTG mode

Check the transceiver state before checking udc->stopped
Enable/disable the PHY and the clock on cable events

Change-Id: Id5a8a1b94f83da8060786f31181014dd1d546fc7
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/fsl_tegra_udc.c
drivers/usb/gadget/fsl_udc_core.c