Re: [PATCH 3/3] usb: dwc3: dwc3-qcom: Find USB connector and register role switch

2020-08-10 Thread Wesley Cheng
On 8/10/2020 5:13 AM, Felipe Balbi wrote: > > Hi, > > Wesley Cheng writes: >> @@ -190,6 +195,73 @@ static int dwc3_qcom_register_extcon(struct dwc3_qcom >> *qcom) >> return 0; >> } >> >> +static int dwc3_qcom_usb_role_switch_set(struct usb_role_switch *sw, >> +

Re: [PATCH 3/3] usb: dwc3: dwc3-qcom: Find USB connector and register role switch

2020-08-10 Thread Felipe Balbi
Hi, Wesley Cheng writes: > @@ -190,6 +195,73 @@ static int dwc3_qcom_register_extcon(struct dwc3_qcom > *qcom) > return 0; > } > > +static int dwc3_qcom_usb_role_switch_set(struct usb_role_switch *sw, > + enum usb_role role) > +{ > + struct

[PATCH 3/3] usb: dwc3: dwc3-qcom: Find USB connector and register role switch

2020-07-30 Thread Wesley Cheng
If registering a USB typeC connector, the connector node may not be a child of the DWC3 QCOM device. Utilize devcon graph search to lookup if any remote endpoints contain the connector. If a connector is present, the DWC3 QCOM will register a USB role switch to receive role change events, as