Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9618d093 authored by Michael Trimarchi's avatar Michael Trimarchi Committed by Greg Kroah-Hartman
Browse files

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: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1ca50331
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;