usb: otg: twl4030-usb: check if vbus is driven by twl itself
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Feb 2013 23:11:22 +0000 (01:11 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 12 Mar 2013 21:45:54 +0000 (23:45 +0200)
commit2655e6ac0981113fe8a3833f6a739337f3638650
treece3ba2408ad0d3a8deb5867c34f1c577e324b981
parentc91286a490a8b02ebd852e24a7c9fda9d37aa43d
usb: otg: twl4030-usb: check if vbus is driven by twl itself

At least on pandora, STS_VBUS gets set even when VBUS is driven by twl
itself. Reporting VBUS in this case confuses OMAP musb glue and charger
driver, so check if OTG VBUS charge pump is on before reporting VBUS
event to avoid this problem.
drivers/usb/otg/twl4030-usb.c