usb: musb: dsps: fix polling in device-only mode
Fix the regression caused by commitad78c91860
("usb: musb: dsps: just start polling already") which causes polling the ID pin status even in device-only mode. Fixes:ad78c91860
("usb: musb: dsps: just start polling already") Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
cf261fd1a4
commit
b8239dcc03
|
@ -225,8 +225,11 @@ static void dsps_musb_enable(struct musb *musb)
|
|||
|
||||
dsps_writel(reg_base, wrp->epintr_set, epmask);
|
||||
dsps_writel(reg_base, wrp->coreintr_set, coremask);
|
||||
/* start polling for ID change. */
|
||||
mod_timer(&glue->timer, jiffies + msecs_to_jiffies(wrp->poll_timeout));
|
||||
/* start polling for ID change in dual-role idle mode */
|
||||
if (musb->xceiv->otg->state == OTG_STATE_B_IDLE &&
|
||||
musb->port_mode == MUSB_PORT_MODE_DUAL_ROLE)
|
||||
mod_timer(&glue->timer, jiffies +
|
||||
msecs_to_jiffies(wrp->poll_timeout));
|
||||
dsps_musb_try_idle(musb, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue