[PATCH 2/4] usb: chipidea i.MX: limit port init to HSIC mode
Sascha Hauer
s.hauer at pengutronix.de
Tue Jan 7 05:18:34 EST 2014
imx_chipidea_port_init() will be called during startup from
the ehci driver. Calling it before setting up the PORTSC register
is only necessary in HSIC mode.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/imx/chipidea-imx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index 2f290e1..c81c10d 100644
--- a/drivers/usb/imx/chipidea-imx.c
+++ b/drivers/usb/imx/chipidea-imx.c
@@ -161,7 +161,8 @@ static int imx_chipidea_probe(struct device_d *dev)
ci->data.post_init = imx_chipidea_port_post_init;
ci->data.drvdata = ci;
- imx_chipidea_port_init(ci);
+ if ((ci->flags & MXC_EHCI_PORTSC_MASK) == MXC_EHCI_MODE_HSIC)
+ imx_chipidea_port_init(ci);
portsc = readl(base + 0x184);
portsc &= ~MXC_EHCI_PORTSC_MASK;
--
1.8.5.2
More information about the barebox
mailing list