usb: musb: dsps: keep VBUS on for host-only mode
authorBin Liu <b-liu@ti.com>
Thu, 25 May 2017 18:42:39 +0000 (13:42 -0500)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:00:25 +0000 (03:00 +0000)
commit3f35fef848db6f9e7ac6908fe1ab4e122661159c
tree481bbdf6185a9f8a120d75633d58ab0026c24b4f
parentd246933ad66c571a197237276fc873140336dc4d
usb: musb: dsps: keep VBUS on for host-only mode

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.

Fixes: 2f3fd2c5bde1 ("usb: musb: Prepare dsps glue layer for PM runtime support")
Reported-by: Moreno Bartalucci <moreno.bartalucci@tecnorama.it>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c