mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
usb: dwc3: set the usb role to usb2 phy
Concurrently set the USB role to the USB2 PHY when we received role_switch set from the TCPM (Type-C Port Manager). Signed-off-by: Frank Wang <frank.wang@rock-chips.com> Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: Ie677ee7f5c62b1c26fb38080ce46ea0a6cabbbc7
This commit is contained in:
@@ -508,6 +508,7 @@ static int dwc3_usb_role_switch_set(struct usb_role_switch *sw,
|
||||
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
|
||||
dwc->desired_role_sw_mode = role;
|
||||
phy_set_mode_ext(dwc->usb2_generic_phy, PHY_MODE_USB_OTG, role);
|
||||
#endif
|
||||
|
||||
switch (role) {
|
||||
|
||||
Reference in New Issue
Block a user