usb: chipidea: usbmisc: evdo is only specific to OTG port
RFC 1/3 usb: chipidea: usbmisc: evdo is only specific to OTG port
Quoted 3 lines · Michael Trimarchi
The
USB_PHY_CTRL_FUNCis used specific for OTG port as described in user manual. EVDO need to be set only for index 0 that corrispond to OTG port
%s/corrispond/correspond/
Quoted 27 lines
Signed-off-by Michael Trimarchi <[email protected]>--- drivers/usb/chipidea/usbmisc_imx.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/chipidea/usbmisc_imx.c +3
-0@@ -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 ;Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html