diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2018-03-29 05:52:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-29 06:03:01 -0400 |
commit | 9618d0934980c4b0d8d4b455ef10ba6b435e52c8 (patch) | |
tree | b52967ca940e7fd4f09172c21660f98dd3f5c891 | |
parent | 1ca5033101032f49e798d2f07971d87d48bda3ed (diff) |
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 <michael@amarulasolutions.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/chipidea/usbmisc_imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c index 8cdf0af156c6..a52f5a86f177 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) | |||
148 | if (data->index > 2) | 148 | if (data->index > 2) |
149 | return -EINVAL; | 149 | return -EINVAL; |
150 | 150 | ||
151 | if (data->index) | ||
152 | return 0; | ||
153 | |||
151 | if (data->evdo) { | 154 | if (data->evdo) { |
152 | spin_lock_irqsave(&usbmisc->lock, flags); | 155 | spin_lock_irqsave(&usbmisc->lock, flags); |
153 | reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET; | 156 | reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET; |