Skip to content

Commit e715eb2

Browse files
committed
vexpress: Initialise the sysregs before setting up the clocks
Following arm64 commit bc3ee18 (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. 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>
1 parent 7a8d1ec commit e715eb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/versatile/clk-vexpress-osc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
100100
struct clk *clk;
101101
u32 range[2];
102102

103+
vexpress_sysreg_of_early_init();
104+
103105
osc = kzalloc(sizeof(*osc), GFP_KERNEL);
104106
if (!osc)
105107
return;

0 commit comments

Comments
 (0)