Skip to content

Commit eb320f7

Browse files
superna9999gregkh
authored andcommitted
usb: dwc3: qcom: enable vbus override when in OTG dr-mode
With vbus override enabled when in OTG dr_mode, Host<->Peripheral switch now works on SM8550, otherwise the DWC3 seems to be stuck in Host mode only. Fixes: a4333c3 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/20230123-topic-sm8550-upstream-dwc3-qcom-otg-v2-1-2d400e598463@linaro.org Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fa003a3 commit eb320f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/dwc3-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
901901
qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev);
902902

903903
/* enable vbus override for device mode */
904-
if (qcom->mode == USB_DR_MODE_PERIPHERAL)
904+
if (qcom->mode != USB_DR_MODE_HOST)
905905
dwc3_qcom_vbus_override_enable(qcom, true);
906906

907907
/* register extcon to override sw_vbus on Vbus change later */

0 commit comments

Comments
 (0)