linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: lokeshvutla@ti.com (Lokesh Vutla)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Revert "ARM: AM33xx: fix module_wait_ready without clkctrl register"
Date: Tue, 12 Jul 2016 09:04:20 +0530	[thread overview]
Message-ID: <5784653C.30502@ti.com> (raw)
In-Reply-To: <20160711213938.28385-1-d-gerlach@ti.com>



On Tuesday 12 July 2016 03:09 AM, Dave Gerlach wrote:
> This reverts commit 183e2077d007aa4b697efba095ecfea7244a6107.
> 
> The original patch added a check to am33xx_cm_wait_module_ready for a
> clkctrl offset of 0 as an invalid case, however, clkctrl offset of 0 is
> perfectly valid for hwmods, in particular the rtc.

Looks like a similar check is present for am33xx_cm_wait_module_idle.
Shouldn't that also be removed?

Thanks and regards,
Lokesh

> 
> Without reverting this patch sometimes external aborts are seen on
> am335x during boot. This is due to the am33xx_cm_wait_module_ready
> function immediately returning 0 rather than waiting for the RTC_CLKCTRL
> register to indicate it is actually ready before rtc register accesses
> happen.
> 
> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
> ---
>  arch/arm/mach-omap2/cm33xx.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c
> index c073fb57dd13..7b181f929525 100644
> --- a/arch/arm/mach-omap2/cm33xx.c
> +++ b/arch/arm/mach-omap2/cm33xx.c
> @@ -220,9 +220,6 @@ static int am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs,
>  {
>  	int i = 0;
>  
> -	if (!clkctrl_offs)
> -		return 0;
> -
>  	omap_test_timeout(_is_module_ready(inst, clkctrl_offs),
>  			  MAX_MODULE_READY_TIME, i);
>  
> 

  parent reply	other threads:[~2016-07-12  3:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 21:39 [PATCH] Revert "ARM: AM33xx: fix module_wait_ready without clkctrl register" Dave Gerlach
2016-07-11 21:43 ` Dave Gerlach
2016-07-11 21:50   ` Dave Gerlach
2016-07-12  3:34 ` Lokesh Vutla [this message]
2016-07-12  6:27   ` Tero Kristo
2016-07-12 13:34     ` Dave Gerlach
2016-07-12 17:55       ` Dave Gerlach

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=5784653C.30502@ti.com \
    --to=lokeshvutla@ti.com \
    --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).