From: Kevin Hilman <khilman@deeprootsystems.com>
To: Anand Gadiyar <gadiyar@ti.com>
Cc: linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH] OMAP3: wait on IDLEST after enabling USBTLL fclk
Date: Mon, 21 Jun 2010 08:07:31 -0700 [thread overview]
Message-ID: <878w682zm4.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1273127288-21590-1-git-send-email-gadiyar@ti.com> (Anand Gadiyar's message of "Thu\, 6 May 2010 11\:58\:08 +0530")
Anand Gadiyar <gadiyar@ti.com> writes:
> We need to wait on the IDLEST bit after the clocks are enabled
> before attempting to access any register.
>
> Currently, the USBTLL i-clock ops uses the clkops_omap2_dflt_wait,
> while the USBTLL f-clock ops uses clkops_omap2_dflt. If the
> i-clock is enabled first, the clkops_omap2_dflt_wait is
> short-circuited as the companion f-clock is not enabled.
> This can cause a data abort if the IDLEST has not transitioned,
> and we try to access a USBTLL register.
>
> Since the USBTLL i-clock and f-clock could be enabled in any order,
> this is a bug. Fix it by changing the clkops for the f-clock.
>
> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
> ---
>
> arch/arm/mach-omap2/clock3xxx_data.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-omap-2.6/arch/arm/mach-omap2/clock3xxx_data.c
> ===================================================================
> --- linux-omap-2.6.orig/arch/arm/mach-omap2/clock3xxx_data.c
> +++ linux-omap-2.6/arch/arm/mach-omap2/clock3xxx_data.c
> @@ -1484,7 +1484,7 @@ static struct clk ts_fck = {
>
> static struct clk usbtll_fck = {
> .name = "usbtll_fck",
> - .ops = &clkops_omap2_dflt,
> + .ops = &clkops_omap2_dflt_wait,
> .parent = &dpll5_m2_ck,
> .enable_reg = OMAP_CM_REGADDR(CORE_MOD, OMAP3430ES2_CM_FCLKEN3),
> .enable_bit = OMAP3430ES2_EN_USBTLL_SHIFT,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-06-21 15:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 6:28 [PATCH] OMAP3: wait on IDLEST after enabling USBTLL fclk Anand Gadiyar
2010-06-18 20:55 ` Gadiyar, Anand
2010-06-21 21:45 ` Paul Walmsley
2010-06-22 16:46 ` Gadiyar, Anand
2010-06-24 0:20 ` Paul Walmsley
2010-06-24 6:08 ` Gadiyar, Anand
2010-06-24 6:28 ` Paul Walmsley
2010-07-01 10:53 ` Tony Lindgren
2010-07-01 16:48 ` Paul Walmsley
2010-06-21 15:07 ` Kevin Hilman [this message]
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=878w682zm4.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=gadiyar@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.