From: Michael Trimarchi Date: Thu, 29 Mar 2018 09:52:45 +0000 (+0800) Subject: usb: chipidea: usbmisc: evdo is only specific to OTG port X-Git-Tag: v4.19~1304^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9618d0934980c4b0d8d4b455ef10ba6b435e52c8;p=platform%2Fkernel%2Flinux-rpi.git usb: chipidea: usbmisc: evdo is only specific to OTG port The USB_PHY_CTRL_FUNC is used specific for OTG port as described in user manual. EVDO need to be set only for index 0 that correspond to OTG port Signed-off-by: Michael Trimarchi Signed-off-by: Peter Chen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c index 8cdf0af1..a52f5a8 100644 --- a/drivers/usb/chipidea/usbmisc_imx.c +++ b/drivers/usb/chipidea/usbmisc_imx.c @@ -148,6 +148,9 @@ static int usbmisc_imx25_post(struct imx_usbmisc_data *data) if (data->index > 2) return -EINVAL; + if (data->index) + return 0; + if (data->evdo) { spin_lock_irqsave(&usbmisc->lock, flags); reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET;