]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: twl4030-usb: don't switch the phy on/off needlessly
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 17 Mar 2013 18:23:23 +0000 (20:23 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 21 Mar 2013 12:20:29 +0000 (14:20 +0200)
commit56a3a5c9e106377ef4ba908fd36f42645d6cb3e4
treec87a2eec69b317c9e08e87b7f4732eebd56c9075
parent52413fef2e68d4194136b8e5b21c4aeea733deb4
usb: phy: 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 after it's called through
omap_musb_mailbox() on VBUS/ID interrupt. Not doing 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, because a regulator needed
for charging will no longer be enabled, so be sure to enable charger
driver if charging is needed.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-twl4030-usb.c