]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/i2c/chips/twl4030-usb.c
Triton BCI driver for OMAP3430 - USB changes
[linux-2.6-omap-h63xx.git] / drivers / i2c / chips / twl4030-usb.c
index 20858b5bf784f31f6af7bf116968bd6c83207869..d9760e41631fc7cf80a6514ee40bc910fed5778d 100644 (file)
@@ -601,10 +601,13 @@ static irqreturn_t twl4030_usb_irq(int irq, void *_twl)
                goto done;
        }
 
-       if (val & USB_PRES_RISING)
+       if (val & USB_PRES_RISING) {
                twl4030_phy_resume();
-       else
+               twl4030charger_usb_en(1);
+       } else {
+               twl4030charger_usb_en(0);
                twl4030_phy_suspend(0);
+       }
 
        ret = IRQ_HANDLED;