All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vexpress: Initialise the sysregs before setting up the clocks
@ 2014-05-01 14:05 Catalin Marinas
  2014-05-01 15:14 ` Jon Medhurst (Tixy)
  2014-05-01 20:16 ` Sergei Shtylyov
  0 siblings, 2 replies; 5+ messages in thread
From: Catalin Marinas @ 2014-05-01 14:05 UTC (permalink / raw)
  To: linux-arm-kernel

Following arm64 commit bc3ee18a7a57 (arm64: init: Move of_clk_init to
time_init()), vexpress_osc_of_setup() is called via of_clk_init() long
before initcalls are issued. Initialising the vexpress oscillators
requires the vespress sysregs to be already initialised, so this patch
adds an explicit call to vexpress_sysreg_of_early_init() in vexpress
oscillator setup function. In addition, vexpress_sysreg_init() is
changed to a device_initcall() as the core_initcall() is no longer
required.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Cc: Mike Turquette <mturquette@linaro.org>
---

Mike, I'd like to get this in for 3.15 and I'm happy to push it via the arm64
tree. Are you ok with this? Thanks.

 drivers/clk/versatile/clk-vexpress-osc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
index a535c7bf8574..422391242b39 100644
--- a/drivers/clk/versatile/clk-vexpress-osc.c
+++ b/drivers/clk/versatile/clk-vexpress-osc.c
@@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
 	struct clk *clk;
 	u32 range[2];
 
+	vexpress_sysreg_of_early_init();
+
 	osc = kzalloc(sizeof(*osc), GFP_KERNEL);
 	if (!osc)
 		return;

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] vexpress: Initialise the sysregs before setting up the clocks
  2014-05-01 14:05 [PATCH] vexpress: Initialise the sysregs before setting up the clocks Catalin Marinas
@ 2014-05-01 15:14 ` Jon Medhurst (Tixy)
  2014-05-01 16:07   ` Catalin Marinas
  2014-05-01 20:16 ` Sergei Shtylyov
  1 sibling, 1 reply; 5+ messages in thread
From: Jon Medhurst (Tixy) @ 2014-05-01 15:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 2014-05-01 at 15:05 +0100, Catalin Marinas wrote:
[...]
> In addition, vexpress_sysreg_init() is changed to a device_initcall()

Not in this patch it isn't ;-)

>  as the core_initcall() is no longer
> required.
> 
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Tested-by: Will Deacon <will.deacon@arm.com>
> Acked-by: Will Deacon <will.deacon@arm.com>
> Tested-by: Pawel Moll <pawel.moll@arm.com>
> Acked-by: Pawel Moll <pawel.moll@arm.com>
> Cc: Mike Turquette <mturquette@linaro.org>
> ---
> 
> Mike, I'd like to get this in for 3.15 and I'm happy to push it via the arm64
> tree. Are you ok with this? Thanks.
> 
>  drivers/clk/versatile/clk-vexpress-osc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
> index a535c7bf8574..422391242b39 100644
> --- a/drivers/clk/versatile/clk-vexpress-osc.c
> +++ b/drivers/clk/versatile/clk-vexpress-osc.c
> @@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
>  	struct clk *clk;
>  	u32 range[2];
>  
> +	vexpress_sysreg_of_early_init();
> +
>  	osc = kzalloc(sizeof(*osc), GFP_KERNEL);
>  	if (!osc)
>  		return;
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] vexpress: Initialise the sysregs before setting up the clocks
  2014-05-01 15:14 ` Jon Medhurst (Tixy)
@ 2014-05-01 16:07   ` Catalin Marinas
  0 siblings, 0 replies; 5+ messages in thread
From: Catalin Marinas @ 2014-05-01 16:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 01, 2014 at 04:14:35PM +0100, Jon Medhurst (Tixy) wrote:
> On Thu, 2014-05-01 at 15:05 +0100, Catalin Marinas wrote:
> [...]
> > In addition, vexpress_sysreg_init() is changed to a device_initcall()
> 
> Not in this patch it isn't ;-)

Indeed, Pawel pinged me in private already. It was there initially but
it's not really justified for an -rc fix.

-- 
Catalin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] vexpress: Initialise the sysregs before setting up the clocks
  2014-05-01 14:05 [PATCH] vexpress: Initialise the sysregs before setting up the clocks Catalin Marinas
  2014-05-01 15:14 ` Jon Medhurst (Tixy)
@ 2014-05-01 20:16 ` Sergei Shtylyov
  2014-05-01 21:46   ` Catalin Marinas
  1 sibling, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2014-05-01 20:16 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 05/01/2014 06:05 PM, Catalin Marinas wrote:

> Following arm64 commit bc3ee18a7a57 (arm64: init: Move of_clk_init to
> time_init()), vexpress_osc_of_setup() is called via of_clk_init() long
> before initcalls are issued. Initialising the vexpress oscillators
> requires the vespress sysregs to be already initialised, so this patch
> adds an explicit call to vexpress_sysreg_of_early_init() in vexpress
> oscillator setup function. In addition, vexpress_sysreg_init() is
> changed to a device_initcall() as the core_initcall() is no longer
> required.

    I don't see that last change in this patch...

> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Tested-by: Will Deacon <will.deacon@arm.com>
> Acked-by: Will Deacon <will.deacon@arm.com>
> Tested-by: Pawel Moll <pawel.moll@arm.com>
> Acked-by: Pawel Moll <pawel.moll@arm.com>
> Cc: Mike Turquette <mturquette@linaro.org>
> ---

> Mike, I'd like to get this in for 3.15 and I'm happy to push it via the arm64
> tree. Are you ok with this? Thanks.

>   drivers/clk/versatile/clk-vexpress-osc.c | 2 ++
>   1 file changed, 2 insertions(+)

> diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
> index a535c7bf8574..422391242b39 100644
> --- a/drivers/clk/versatile/clk-vexpress-osc.c
> +++ b/drivers/clk/versatile/clk-vexpress-osc.c
> @@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
>   	struct clk *clk;
>   	u32 range[2];
>
> +	vexpress_sysreg_of_early_init();
> +
>   	osc = kzalloc(sizeof(*osc), GFP_KERNEL);
>   	if (!osc)
>   		return;

WBR, Sergei

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] vexpress: Initialise the sysregs before setting up the clocks
  2014-05-01 20:16 ` Sergei Shtylyov
@ 2014-05-01 21:46   ` Catalin Marinas
  0 siblings, 0 replies; 5+ messages in thread
From: Catalin Marinas @ 2014-05-01 21:46 UTC (permalink / raw)
  To: linux-arm-kernel

On 1 May 2014, at 21:16, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote:
> On 05/01/2014 06:05 PM, Catalin Marinas wrote:
> 
>> Following arm64 commit bc3ee18a7a57 (arm64: init: Move of_clk_init to
>> time_init()), vexpress_osc_of_setup() is called via of_clk_init() long
>> before initcalls are issued. Initialising the vexpress oscillators
>> requires the vespress sysregs to be already initialised, so this patch
>> adds an explicit call to vexpress_sysreg_of_early_init() in vexpress
>> oscillator setup function. In addition, vexpress_sysreg_init() is
>> changed to a device_initcall() as the core_initcall() is no longer
>> required.
> 
>    I don't see that last change in this patch?

Please see my reply to Tixy. I dropped the change but forgot the log.

Catalin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-01 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 14:05 [PATCH] vexpress: Initialise the sysregs before setting up the clocks Catalin Marinas
2014-05-01 15:14 ` Jon Medhurst (Tixy)
2014-05-01 16:07   ` Catalin Marinas
2014-05-01 20:16 ` Sergei Shtylyov
2014-05-01 21:46   ` Catalin Marinas

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.