ARM: integrator: use clk_prepare_enable() for timer
Subsystems (2)
PATCH 1/1 ARM: integrator: use clk_prepare_enable() for timer
The Integrator timer is using the clock framework to get the timer frequency, but missed to prepare the clock before enabling.
--- arch/arm/mach-integrator/integrator_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-integrator/integrator_ap.c +1 -1
@@ -456,7 +456,7 @@ static void __init ap_init_timer(void) clk =clk_get_sys ("ap_timer" ,NULL );BUG_ON (IS_ERR (clk)); -clk_enable (clk); +clk_prepare_enable (clk); rate =clk_get_rate (clk);writel (0 ,TIMER0_VA_BASE +TIMER_CTRL );
Signature · 1 line
1.7.11.2
PATCH 1/1 ARM: integrator: use clk_prepare_enable() for timer
Quoted 4 lines · Linus Walleij
The Integrator timer is using the clock framework to get the timer frequency, but missed to prepare the clock before enabling.
Signed-off-by Linus Walleij <[email protected]>
Arnd, Olof,
If this patch looks OK to you I request that you apply it alone, no pull requests, too much hazzle for a single patch...
Yours,
Linus Walleij
PATCH 1/1 ARM: integrator: use clk_prepare_enable() for timer
Quoted 11 lines · Linus Walleij
Quoted 4 lines · Linus Walleij
The Integrator timer is using the clock framework to get the timer frequency, but missed to prepare the clock before enabling.
Signed-off-by Linus Walleij <[email protected]>Arnd, Olof,
If this patch looks OK to you I request that you apply it alone, no pull requests, too much hazzle for a single patch...
Applying a patch is fine, but please explain which version(s) to apply this to? Is it a regression in v3.6, or should it be backported to earlier versions too?
Arnd
PATCH 1/1 ARM: integrator: use clk_prepare_enable() for timer
Quoted 9 lines · Arnd Bergmann
Quoted 8 lines · Linus Walleij
Quoted 4 lines · Linus Walleij
The Integrator timer is using the clock framework to get the timer frequency, but missed to prepare the clock before enabling.
Signed-off-by Linus Walleij <[email protected]>Arnd, Olof,
Quoted 7 lines
Quoted 3 lines
If this patch looks OK to you I request that you apply it alone, no pull requests, too much hazzle for a single patch...
Applying a patch is fine, but please explain which version(s) to apply this to? Is it a regression in v3.6, or should it be backported to earlier versions too?
Ah sorry. This is for the v3.6 rc:s.
The migration to common clock makes the kernel spit warnings unless you prepare all clocks.
Yours,
Linus Walleij
PATCH 1/1 ARM: integrator: use clk_prepare_enable() for timer
Quoted 14 lines · Linus Walleij
Quoted 13 lines · Arnd Bergmann
Quoted 11 lines · Linus Walleij
Quoted 4 lines · Linus Walleij
The Integrator timer is using the clock framework to get the timer frequency, but missed to prepare the clock before enabling.
Signed-off-by Linus Walleij <[email protected]>Arnd, Olof,
If this patch looks OK to you I request that you apply it alone, no pull requests, too much hazzle for a single patch...
Quoted 9 lines
Quoted 3 lines
Applying a patch is fine, but please explain which version(s) to apply this to? Is it a regression in v3.6, or should it be backported to earlier versions too?
Ah sorry. This is for the v3.6 rc:s.
The migration to common clock makes the kernel spit warnings unless you prepare all clocks.
Ok, I've applied it to the fixes branch now.
Arnd