Message ID | 52AC4568.7030201@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Saturday 14 December 2013 06:47 AM, Sebastian Hesselbarth wrote: [..] > From 4ef4720c0d7ca9be57b06dc7ab1483c77a5ada1d Mon Sep 17 00:00:00 2001 > From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> > Date: Sat, 14 Dec 2013 12:21:01 +0100 > Subject: [PATCH] ARM: keystone: remove call to of_clk_init > > Commit > > 4178bac ARM: call of_clk_init from default time_init handler > > added implicit call to of_clk_init(NULL) from default time_init callback. > This causes double clock initialization on keystone, leading to boot > failures. > > This patch fixes boot failure on keystone by dropping the call to > of_clk_init(NULL) in keystone_pm_runtime_init(), which is set as > subsys_initcall and therefore called after arch-wide .init_time callback. > > Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> > --- I already have a patch [1] for this in my queue. Thanks Regards, Santosh [1] http://www.spinics.net/lists/arm-kernel/msg288578.html
diff --git a/arch/arm/mach-keystone/pm_domain.c b/arch/arm/mach-keystone/pm_domain.c index 2962523..3f17e16 100644 --- a/arch/arm/mach-keystone/pm_domain.c +++ b/arch/arm/mach-keystone/pm_domain.c @@ -16,7 +16,6 @@ #include <linux/pm_runtime.h> #include <linux/pm_clock.h> #include <linux/platform_device.h> -#include <linux/clk-provider.h> #include <linux/of.h> #ifdef CONFIG_PM_RUNTIME @@ -74,7 +73,6 @@ int __init keystone_pm_runtime_init(void) if (!np) return 0; - of_clk_init(NULL); pm_clk_add_notifier(&platform_bus_type, &platform_domain_notifier); return 0;