Skip to contentSkip to conversation

usb: chipidea: usbmisc: evdo is only specific to OTG port

RFC New Michael Trimarchi 1 participant 1 message Jan 18, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC v2 1/3 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

---
Changes v1->v2
- %s/corrispond/correspond/

---
 drivers/usb/chipidea/usbmisc_imx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/chipidea/usbmisc_imx.c +3 -0
index 8cdf0af1..a52f5a8 100644
@@ -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;