From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] mxc: enable EHCI PER clock
Date: Wed, 19 Dec 2012 21:29:26 +0100 [thread overview]
Message-ID: <20121219202926.GB19651@pengutronix.de> (raw)
In-Reply-To: <1355941777-99352-2-git-send-email-gwenhael.goavec-merou@armadeus.com>
On Wed, Dec 19, 2012 at 07:29:37PM +0100, Gwenhael Goavec-Merou wrote:
> EHCI PER clock (aka usb_div) must be enabled to have EHCI driver working.
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
> ---
> drivers/usb/host/ehci-mxc.c | 12 +++++++++++-
> 1 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index ec7f5d2..8050631 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -31,7 +31,7 @@
> #define ULPI_VIEWPORT_OFFSET 0x170
>
> struct ehci_mxc_priv {
> - struct clk *usbclk, *ahbclk, *phyclk;
> + struct clk *usbclk, *ahbclk, *perclk, *phyclk;
> struct usb_hcd *hcd;
> };
>
> @@ -150,6 +150,13 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
> }
> clk_prepare_enable(priv->ahbclk);
>
> + priv->perclk = devm_clk_get(&pdev->dev, "per");
> + if (IS_ERR(priv->perclk)) {
> + ret = PTR_ERR(priv->perclk);
> + goto err_clk_per;
> + }
> + clk_prepare_enable(priv->perclk);
Have you checked this clock is present on all SoCs using this driver?
Other than that, +1 on using the chipidea driver as Fabio and Marek
already noted.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-12-19 20:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 18:29 [PATCH 1/2] mx27: add a clock gate to activate SPLL clock Gwenhael Goavec-Merou
2012-12-19 18:29 ` [PATCH 2/2] mxc: enable EHCI PER clock Gwenhael Goavec-Merou
2012-12-19 19:04 ` Fabio Estevam
2012-12-19 19:45 ` Marek Vasut
2012-12-19 20:29 ` Sascha Hauer [this message]
2013-01-08 12:52 ` gwenhael.goavec
2013-01-08 13:01 ` Marek Vasut
2013-01-08 13:41 ` gwenhael.goavec
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=20121219202926.GB19651@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).