usb: musb: dsps: just start polling already
authorFelipe Balbi <balbi@ti.com>
Sat, 28 Feb 2015 01:07:49 +0000 (19:07 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:33 +0000 (15:33 -0500)
there's no need to fake an IRQ, just check
if VBUS is valid already.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c

index 9271450ebacd5585b84f466ade142cd0ba3911a2..baa757ba13534daa7a27ce05a16da18acb85a93f 100644 (file)
@@ -225,9 +225,8 @@ static void dsps_musb_enable(struct musb *musb)
 
        dsps_writel(reg_base, wrp->epintr_set, epmask);
        dsps_writel(reg_base, wrp->coreintr_set, coremask);
-       /* Force the DRVVBUS IRQ so we can start polling for ID change. */
-       dsps_writel(reg_base, wrp->coreintr_set,
-                   (1 << wrp->drvvbus) << wrp->usb_shift);
+       /* start polling for ID change. */
+       mod_timer(&glue->timer, jiffies + msecs_to_jiffies(wrp->poll_timeout));
        dsps_musb_try_idle(musb, 0);
 }