]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: imx8m: drop clk_hw_set_parent for A53
authorPeng Fan <peng.fan@nxp.com>
Thu, 7 May 2020 05:56:11 +0000 (13:56 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 20 May 2020 01:26:28 +0000 (09:26 +0800)
The parent settings have been moved to dtsi, we no need to
set parent here. And clk_hw_set_parent will trigger lockdep warning,
because this api not have prepare_lock.

Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mm.c
drivers/clk/imx/clk-imx8mn.c
drivers/clk/imx/clk-imx8mp.c
drivers/clk/imx/clk-imx8mq.c

index 925670438f23bb2d6fbedf308a35f95c8f477776..5435042a06e3a302af0e5d42b766bd512444e8f1 100644 (file)
@@ -614,9 +614,6 @@ static int imx8mm_clocks_probe(struct platform_device *pdev)
                                           hws[IMX8MM_ARM_PLL_OUT]->clk,
                                           hws[IMX8MM_CLK_A53_DIV]->clk);
 
-       clk_hw_set_parent(hws[IMX8MM_CLK_A53_SRC], hws[IMX8MM_SYS_PLL1_800M]);
-       clk_hw_set_parent(hws[IMX8MM_CLK_A53_CORE], hws[IMX8MM_ARM_PLL_OUT]);
-
        imx_check_clk_hws(hws, IMX8MM_CLK_END);
 
        ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);
index 0bc7070235bdc0c57808ae76665503ace4ae5c66..6cac6ca03e1224cd803744aa255db0778b2cc370 100644 (file)
@@ -565,9 +565,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
                                           hws[IMX8MN_ARM_PLL_OUT]->clk,
                                           hws[IMX8MN_CLK_A53_DIV]->clk);
 
-       clk_hw_set_parent(hws[IMX8MN_CLK_A53_SRC], hws[IMX8MN_SYS_PLL1_800M]);
-       clk_hw_set_parent(hws[IMX8MN_CLK_A53_CORE], hws[IMX8MN_ARM_PLL_OUT]);
-
        imx_check_clk_hws(hws, IMX8MN_CLK_END);
 
        ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);
index 41469e2cc3de5bad10dd1872a93f78d262c778cd..e05ec56df285963ede70a48e8e25421ba875b333 100644 (file)
@@ -735,9 +735,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
                                             hws[IMX8MP_ARM_PLL_OUT]->clk,
                                             hws[IMX8MP_CLK_A53_DIV]->clk);
 
-       clk_hw_set_parent(hws[IMX8MP_CLK_A53_SRC], hws[IMX8MP_SYS_PLL1_800M]);
-       clk_hw_set_parent(hws[IMX8MP_CLK_A53_CORE], hws[IMX8MP_ARM_PLL_OUT]);
-
        imx_check_clk_hws(hws, IMX8MP_CLK_END);
 
        of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);
index fdc68db68de5a0f60b84d9b9ae0820d3d76a9c8a..201c7bbb201f48dcd215b77d2e8f30efe790eb48 100644 (file)
@@ -599,9 +599,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
                                           hws[IMX8MQ_ARM_PLL_OUT]->clk,
                                           hws[IMX8MQ_CLK_A53_DIV]->clk);
 
-       clk_hw_set_parent(hws[IMX8MQ_CLK_A53_SRC], hws[IMX8MQ_SYS1_PLL_800M]);
-       clk_hw_set_parent(hws[IMX8MQ_CLK_A53_CORE], hws[IMX8MQ_ARM_PLL_OUT]);
-
        imx_check_clk_hws(hws, IMX8MQ_CLK_END);
 
        err = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);