From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/4] usb: chipidea i.MX: limit port init to HSIC mode
Date: Tue, 7 Jan 2014 11:18:34 +0100 [thread overview]
Message-ID: <1389089916-2771-3-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1389089916-2771-1-git-send-email-s.hauer@pengutronix.de>
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>
---
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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-01-07 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 10:18 USB chipidea patches Sascha Hauer
2014-01-07 10:18 ` [PATCH 1/4] usb: chipidea i.MX: remove unused pdata->init hook Sascha Hauer
2014-01-07 10:18 ` Sascha Hauer [this message]
2014-01-07 10:18 ` [PATCH 3/4] usb: chipidea i.MX: always print an error message when ULPI fails Sascha Hauer
2014-01-07 10:18 ` [PATCH 4/4] usb: chipidea i.MX: add some delay after ulpi_setup Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1389089916-2771-3-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox