Patch "usb: musb: dsps: keep VBUS on for host-only mode" has been added to the 4.11-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: musb: dsps: keep VBUS on for host-only mode
to the 4.11-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-keep-vbus-on-for-host-only-mode.patch
and it can be found in the queue-4.11 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
b3addcf0d1f04f53fcc302577d5a5e964c18531aMon Sep 17 00:00:00 2001
From: Bin Liu <[email protected]>
Date: Thu, 25 May 2017 13:42:39 -0500
Subject: usb: musb: dsps: keep VBUS on for host-only mode
From: Bin Liu <[email protected]>
commit b3addcf0d1f04f53fcc302577d5a5e964c18531a upstream.
Currently VBUS is turned off while a usb device is detached, and turned on again by the polling routine. This short period VBUS loss prevents usb modem to switch mode.
VBUS should be constantly on for host-only mode, so this changes the driver to not turn off VBUS for host-only mode.
--- drivers/usb/musb/musb_dsps.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/usb/musb/musb_dsps.c +5 -0
@@ -245,6 +245,11 @@ static int dsps_check_status(struct musbdsps_mod_timer_optional (glue);break ;case OTG_STATE_A_WAIT_BCON : +/* keep VBUS on for host-only mode */ +if (musb->port_mode ==MUSB_PORT_MODE_HOST ) { +dsps_mod_timer_optional (glue); +break ; + }musb_writeb (musb->mregs,MUSB_DEVCTL ,0 ); skip_session =1 ;/* fall */
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/usb-musb-dsps-keep-vbus-on-for-host-only-mode.patch