Files
wlan-ap/feeds/ipq807x/ipq807x/patches/120-dwc3-gpio-opps.patch
John Crispin 7e4030c0bc ipq807x: add yuncore fap655 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-06-04 12:36:46 +02:00

14 lines
722 B
Diff

Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/drivers/usb/dwc3/dwc3-qcom.c
===================================================================
--- linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016.orig/drivers/usb/dwc3/dwc3-qcom.c
+++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/drivers/usb/dwc3/dwc3-qcom.c
@@ -669,7 +669,7 @@ static int dwc3_qcom_probe(struct platfo
/* enable vbus override for device mode */
if (qcom->mode == USB_DR_MODE_PERIPHERAL)
dwc3_qcom_vbus_overrride_enable(qcom, true);
- else if (qcom->device_power_gpio)
+ else if (!IS_ERR(qcom->device_power_gpio))
gpiod_set_value(qcom->device_power_gpio, 0);
#if defined(CONFIG_IPQ_DWC3_QTI_EXTCON)