Patch "usb: musb: dsps: fix polling in device-only mode" has been added to the 4.2-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: musb: dsps: fix polling in device-only mode
to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-musb-dsps-fix-polling-in-device-only-mode.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b8239dcc03afbd0886c1d9b91ba8fee7c6c9a6cbMon Sep 17 00:00:00 2001
From: Bin Liu <[email protected]>
Date: Wed, 16 Sep 2015 14:49:28 -0500
Subject: usb: musb: dsps: fix polling in device-only mode
From: Bin Liu <[email protected]>
commit b8239dcc03afbd0886c1d9b91ba8fee7c6c9a6cb upstream.
Fix the regression caused by commit ad78c918602 ("usb: musb: dsps: just start polling already") which causes polling the ID pin status even in device-only mode.
--- drivers/usb/musb/musb_dsps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/usb/musb/musb_dsps.c +5 -2
@@ -225,8 +225,11 @@ static void dsps_musb_enable(struct musbdsps_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 ); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/usb-musb-dsps-fix-polling-in-device-only-mode.patch