[PATCH v2 3/3] clk: ppc-corenet: fix section mismatch warning

2014-10-18 Thread Kevin Hao
In order to fix the following section mismatch warning: WARNING: drivers/clk/built-in.o(.data+0xe4): Section mismatch in reference from the variable ppc_corenet_clk_driver to the function .init.text:ppc_corenet_clk_probe() The variable ppc_corenet_clk_driver references the function __init p

[PATCH v2 2/3] powerpc: call of_clk_init() from time_init()

2014-10-18 Thread Kevin Hao
So the boards which has COMMON_CLK enabled don't have to invoke this in its board specific file. Signed-off-by: Kevin Hao --- A new patch in v2. arch/powerpc/kernel/time.c| 5 + arch/powerpc/platforms/512x/clock-commonclk.c | 11 +-- 2 files changed, 10 insertio

[PATCH v2 1/3] Revert "clk: ppc-corenet: Fix Section mismatch warning"

2014-10-18 Thread Kevin Hao
This reverts commit da788acb28386aa896224e784954bb73c99ff26c. That commit tried to fix the section mismatch warning by moving the ppc_corenet_clk_driver struct to init section. This is definitely wrong because the kernel would free the memories occupied by this struct after boot while this driver

[PATCH v2 0/3] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-10-18 Thread Kevin Hao
Hi, I have done a boot test on p2014rdb and t4240qds boards. I don't have an access to mpc512x board, so only build test for that. v2: - Revert the commit da788acb2838 first. - Invoke of_clk_init() from a common place. v1 This tries to fix a kernel panic introduced by commit da788acb2838 ("clk

Re: [PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device

2014-10-18 Thread Kevin Hao
On Fri, Oct 17, 2014 at 07:58:55AM +0200, Scott Wood wrote: > On Fri, 2014-10-17 at 06:55 +0800, Kevin Hao wrote: > > I have thought about to put it in a more common place such as time_init(), > > but this will be in conflict with mpc512x board. How about add an > > arch_initcall(mpc85xx_clk_init)