LF-3751 usb: dwc3: core: set port cap dir to be device mode for disconnect
authorLi Jun <jun.li@nxp.com>
Tue, 2 Feb 2021 09:16:51 +0000 (17:16 +0800)
committerLi Jun <jun.li@nxp.com>
Tue, 27 Apr 2021 02:54:14 +0000 (10:54 +0800)
commit9be37f25615b0f039832972c1adbff9a0838cece
tree2ff2ec57b0c54ba1f4a252b71eea122667f4b8e1
parentc8810bac9fc737caa04f3bf4e6b8aba5d7779955
LF-3751 usb: dwc3: core: set port cap dir to be device mode for disconnect

If the dual role port does not connect to either host or device,
do not leave the port cap dir to be the value of last role, instead
we set it to be device mode, power measure test shows the power
will be high if leave the port cap dir register to be host mode
while the port is empty.

Reviewed-by: Ran Wang<ran.wang_1@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drivers/usb/dwc3/core.c