On 06/07/2021 03:51, Peter Chen wrote:
If I understand correctly, the call trace like below: Connector (GPIO/Type-C, usb_role_switch_set_role) -> dwc3 core (func: dwc3_usb_role_switch_set) -> dwc3 qcom glue (func: dwc3_qcom_usb_role_switch_set)
Yes with dwc3_qcom_usb_role_switch_set() then toggling dwc3_qcom_vbus_override_enable() which is the missing piece right now
And, at dts, the property "usb-role-switch" will be at both dwc3 glue and core node dwc3 core is the connector (GPIO/Type-C)'s role switch dwc3 glue is the dwc3 core's role switch right?
Yes, since the glue is modeled as the parent device of the core all that has to happen between dwc3 core and dwc3-qcom is "usb-role-swtich" declared in the parent dwc3-qcom entry
--- bod