usb: otg: twl4030-usb: don't switch the phy on/off needlessly
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Feb 2013 22:27:17 +0000 (00:27 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 12 Mar 2013 21:45:53 +0000 (23:45 +0200)
commitc91286a490a8b02ebd852e24a7c9fda9d37aa43d
tree6108afe18b6c6667d11b3e96b1d2a92956a5d65d
parentd100244a134a370a494ff211af0fbc838a410967
usb: otg: twl4030-usb: don't switch the phy on/off needlessly

With runtime_pm in place there is no longer need to turn the phy
on/off in OTG layer on cable connect/disconnect, OMAP glue does
this through otg.set_suspend() callback already. This will save power
when cable is connected but no gadget driver is loaded.

This will also have side effect of automatic USB charging no longer
working without twl4030_charger driver, so be sure to enable it if
charging is needed.
drivers/usb/otg/twl4030-usb.c