usb: chipidea: usbmisc: evdo is only specific to OTG port
authorMichael Trimarchi <michael@amarulasolutions.com>
Thu, 29 Mar 2018 09:52:45 +0000 (17:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Mar 2018 10:03:01 +0000 (12:03 +0200)
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 <michael@amarulasolutions.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/usbmisc_imx.c

index 8cdf0af156c6ad7c8cf811c075586b8cbeb454a6..a52f5a86f1770e4c4e106824cffd01d9cea9ce11 100644 (file)
@@ -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;