All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Robert Jarzmik <robert.jarzmik@free.fr>,
	Mike Turquette <mturquette@linaro.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clk: pxa: fix pxa27x_clocks_init scope
Date: Mon, 02 Feb 2015 11:48:17 -0800	[thread overview]
Message-ID: <54CFD481.7050108@codeaurora.org> (raw)
In-Reply-To: <1422743840-32689-1-git-send-email-robert.jarzmik@free.fr>

On 01/31/15 14:37, Robert Jarzmik wrote:
> As pxa27x_clocks_init() is called from early boot stage, it has to be
> reachable from pxa architecture code, as are pxa25x_clocks_init() and
> pxa2xx_clock_init().
>
> Remove the static declaration, which was introduced before the order
> issue between clocks and the timer was discovered (ie. the clocks have
> to be available before the timer, all of this before initcalls are
> called).
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>

Is this supposed to go through the clk tree?

$ git grep pxa27x_clocks_init
drivers/clk/pxa/clk-pxa27x.c:static int __init pxa27x_clocks_init(void)
drivers/clk/pxa/clk-pxa27x.c:postcore_initcall(pxa27x_clocks_init);
drivers/clk/pxa/clk-pxa27x.c:   pxa27x_clocks_init();

Where's the early boot stage architecture calling code?

> ---
>  drivers/clk/pxa/clk-pxa27x.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/pxa/clk-pxa27x.c b/drivers/clk/pxa/clk-pxa27x.c
> index 5f9b54b..7f8f344 100644
> --- a/drivers/clk/pxa/clk-pxa27x.c
> +++ b/drivers/clk/pxa/clk-pxa27x.c
> @@ -362,7 +362,7 @@ static void __init pxa27x_base_clocks_init(void)
>  	clk_register_clk_pxa27x_lcd_base();
>  }
>  
> -static int __init pxa27x_clocks_init(void)
> +int __init pxa27x_clocks_init(void)
>  {
>  	pxa27x_base_clocks_init();
>  	return clk_pxa_cken_init(pxa27x_clocks, ARRAY_SIZE(pxa27x_clocks));


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


  reply	other threads:[~2015-02-02 19:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 22:37 [PATCH] clk: pxa: fix pxa27x_clocks_init scope Robert Jarzmik
2015-02-02 19:48 ` Stephen Boyd [this message]
2015-02-02 20:17   ` Robert Jarzmik

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=54CFD481.7050108@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=robert.jarzmik@free.fr \
    /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.