OSDN Git Service

Revert "usb: dwc3: turn off VBUS when leaving host mode" 10
authorsbwml <984419930@qq.com>
Mon, 10 Feb 2020 09:38:51 +0000 (17:38 +0800)
committer0ranko0P <ranko0p@outlook.com>
Tue, 18 Feb 2020 13:11:33 +0000 (21:11 +0800)
This reverts commit 1da25d34b29b0640f83e0720ec2eb100c4d2c333.

drivers/usb/dwc3/core.c

index a6716e1..3191825 100644 (file)
@@ -916,9 +916,6 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc)
                /* do nothing */
                break;
        }
-
-       /* de-assert DRVVBUS for HOST and OTG mode */
-       dwc3_set_mode(dwc, DWC3_GCTL_PRTCAP_DEVICE);
 }
 
 /* XHCI reset, resets other CORE registers as well, re-init those */