]> git.ipfire.org Git - people/arne_f/kernel.git/commit
usb: dwc3: turn off VBUS when leaving host mode
authorBin Liu <b-liu@ti.com>
Wed, 11 Dec 2019 16:10:03 +0000 (10:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2020 09:32:52 +0000 (09:32 +0000)
commit8320145c9eb9e0b11f33e78a4a952ef6721017a0
treebb540613f8e3e92c32b2d17f4c6868b3db18cc1e
parentd271f118b15111427ebae776d0c1ac561d55cbf1
usb: dwc3: turn off VBUS when leaving host mode

commit 09ed259fac621634d51cd986aa8d65f035662658 upstream.

VBUS should be turned off when leaving the host mode.
Set GCTL_PRTCAP to device mode in teardown to de-assert DRVVBUS pin to
turn off VBUS power.

Fixes: 5f94adfeed97 ("usb: dwc3: core: refactor mode initialization to its own function")
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c