From: Felipe Balbi Date: Wed, 11 Aug 2010 10:02:32 +0000 (+0300) Subject: USB: otg: twl4030: fix wrong assumption of starting state X-Git-Tag: v2.6.36-rc3~41^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=461c317705eca5cac09a360f488715927fd0a927;p=pandora-kernel.git USB: otg: twl4030: fix wrong assumption of starting state The reset state of twl4030-usb is not sleeping, it starts up awaken and we need to disable it if we have booted with a disconnected cable to avoid over consumption on the default state. To avoid problems later, we read the current state of the transceiver from the PHY_PWR_CTRL register. The bootloader can, anyways, put the device to sleep before us. Tested on a custom OMAP board. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed