]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: phy: twl4030-usb: check if vbus is driven by twl itself
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 24 Mar 2013 15:36:53 +0000 (17:36 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 08:42:41 +0000 (11:42 +0300)
commitf65f4f40fb23b64a59adbe8629e8e7e6fea279cf
tree647535e5bb45b0c0e753e8baad0ff4c328ef0787
parent6b0cfc656f8a649fbfbe11e76e0aa301ee26879e
usb: phy: 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.

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