* [PATCH] ARM: imx: provide twd clock lookup from device tree
@ 2013-04-03 16:02 Shawn Guo
2013-04-09 11:53 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2013-04-03 16:02 UTC (permalink / raw)
To: linux-arm-kernel
While booting from device tree, imx6q used to provide twd clock lookup
by calling clk_register_clkdev() in clock driver. However, the commit
bd60345 (ARM: use device tree to get smp_twd clock) forces DT boot to
look up the clock from device tree. It causes the failure below when
twd driver tries to get the clock, and hence kernel has to calibrate the
local timer frequency.
smp_twd: clock not found -2
...
Calibrating local timer... 396.13MHz.
Fix the regression by providing twd clock lookup from device tree, and
remove the unused twd clk_register_clkdev() call from clock driver.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
Arnd, Olof,
This is a fix for 3.9.
Shawn
arch/arm/boot/dts/imx6qdl.dtsi | 1 +
arch/arm/mach-imx/clk-imx6q.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index 06ec460..281a223 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -91,6 +91,7 @@
compatible = "arm,cortex-a9-twd-timer";
reg = <0x00a00600 0x20>;
interrupts = <1 13 0xf01>;
+ clocks = <&clks 15>;
};
L2: l2-cache at 00a02000 {
diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c
index 2f9ff93..22a3021 100644
--- a/arch/arm/mach-imx/clk-imx6q.c
+++ b/arch/arm/mach-imx/clk-imx6q.c
@@ -443,7 +443,6 @@ int __init mx6q_clocks_init(void)
clk_register_clkdev(clk[gpt_ipg], "ipg", "imx-gpt.0");
clk_register_clkdev(clk[gpt_ipg_per], "per", "imx-gpt.0");
- clk_register_clkdev(clk[twd], NULL, "smp_twd");
clk_register_clkdev(clk[cko1_sel], "cko1_sel", NULL);
clk_register_clkdev(clk[ahb], "ahb", NULL);
clk_register_clkdev(clk[cko1], "cko1", NULL);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: imx: provide twd clock lookup from device tree
2013-04-03 16:02 [PATCH] ARM: imx: provide twd clock lookup from device tree Shawn Guo
@ 2013-04-09 11:53 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2013-04-09 11:53 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Apr 04, 2013 at 12:02:43AM +0800, Shawn Guo wrote:
> While booting from device tree, imx6q used to provide twd clock lookup
> by calling clk_register_clkdev() in clock driver. However, the commit
> bd60345 (ARM: use device tree to get smp_twd clock) forces DT boot to
> look up the clock from device tree. It causes the failure below when
> twd driver tries to get the clock, and hence kernel has to calibrate the
> local timer frequency.
>
> smp_twd: clock not found -2
> ...
> Calibrating local timer... 396.13MHz.
>
> Fix the regression by providing twd clock lookup from device tree, and
> remove the unused twd clk_register_clkdev() call from clock driver.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> Arnd, Olof,
>
> This is a fix for 3.9.
I will have this included in the pull request that is to be sent.
Shawn
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-09 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 16:02 [PATCH] ARM: imx: provide twd clock lookup from device tree Shawn Guo
2013-04-09 11:53 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).