9
0
Fork 0

usb: chipidea i.MX: limit port init to HSIC mode

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@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-08-16 09:43:45 +02:00
parent 873b6b6892
commit db48428216
1 changed files with 2 additions and 1 deletions

View File

@ -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;