Re: [PATCH 2/3] usb: dwc3: Add role switch relay support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux