mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
usb: musb: dsps: keep VBUS on for host-only mode
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.
Fixes: 2f3fd2c5bd ("usb: musb: Prepare dsps glue layer for PM runtime support")
Cc: [email protected] #v4.11
Reported-by: Moreno Bartalucci <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Bin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
8b77b0cfa9
commit
b3addcf0d1
1 changed files with 5 additions and 0 deletions
|
|
@ -245,6 +245,11 @@ static int dsps_check_status(struct musb *musb, void *unused)
|
|||
dsps_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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue