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:
parent
873b6b6892
commit
db48428216
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue