[PATCH] vexpress: Initialise the sysregs before setting up the clocks
Sergei Shtylyov
sergei.shtylyov at cogentembedded.com
Thu May 1 13:16:06 PDT 2014
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 at arm.com>
> Tested-by: Will Deacon <will.deacon at arm.com>
> Acked-by: Will Deacon <will.deacon at arm.com>
> Tested-by: Pawel Moll <pawel.moll at arm.com>
> Acked-by: Pawel Moll <pawel.moll at arm.com>
> Cc: Mike Turquette <mturquette at 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
More information about the linux-arm-kernel
mailing list