mfd: TWL6030: USBOTG VBUS event generation on
authorHema HK <hemahk@ti.com>
Fri, 10 Dec 2010 12:25:37 +0000 (17:55 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 10 Dec 2010 12:43:06 +0000 (14:43 +0200)
commit77b1d3fa88dcb9d6e885926f972c421e4069b849
tree8d3a68743cebb09c37695eca493c9ee3b5fbd6d4
parent4bc36fd31b07054bdf7378cca7162c10598f3eff
mfd: TWL6030: USBOTG VBUS event generation on

With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated
as expected. When these interrupts are enabled, charger VBUS detection
interrupt does not get generated. So USBOTG has to be dependent on charger
VBUS interrupts.
So added one bit for USBOTG and changed the handler to call the
USBOTG handler whenever there is a charger VBUS interrpt.

VBUS SESS_VLD and SESS_END event generation issue is under debug with
HW team. This fix might not be required once after fixing the issue.

Signed-off-by: Balaji TK <balajitk@ti.com>
Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/mfd/twl6030-irq.c