MLK-14957 clk: imx8qm/qxp: delay the clk driver initialization
authorPeng Fan <peng.fan@nxp.com>
Tue, 23 May 2017 09:30:39 +0000 (17:30 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:25 +0000 (15:22 -0500)
commitf7f81173c04799493bfecb5eb9e6f49a0cfcd357
tree23d6ef562a2b61755644ddc3c0364098935ad360
parent295ce90c9be23e23f10c467132dea16b2981f2df
MLK-14957 clk: imx8qm/qxp: delay the clk driver initialization

Using CLK_OF_DECLARE will register clks at very early stage
that AP-SC communication still not ready.

MU driver is registered by early_initcall, so using core_initcall
to delay the registeration of clk driver is ok.

Move channel open function into probe to avoid core_init sequence
not in our expected order. If MU not ready, return defer probe
for clk driver.

Later when we switch to use interrupt driver AP-SC communication,
we could also return defer probe in clk probe function to wait
until AP-SC communication ready.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/imx/clk-imx8.c
drivers/clk/imx/clk-imx8.h
drivers/clk/imx/clk-imx8qm.c
drivers/clk/imx/clk-imx8qxp.c