mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
usb: musb: dsps: fix polling in device-only mode
commitb8239dcc03upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a8ca14b73c
commit
29a6161885
@@ -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->epintr_set, epmask);
|
||||||
dsps_writel(reg_base, wrp->coreintr_set, coremask);
|
dsps_writel(reg_base, wrp->coreintr_set, coremask);
|
||||||
/* start polling for ID change. */
|
/* start polling for ID change in dual-role idle mode */
|
||||||
mod_timer(&glue->timer, jiffies + msecs_to_jiffies(wrp->poll_timeout));
|
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);
|
dsps_musb_try_idle(musb, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user