Skip to content

Commit cccc464

Browse files
MrVanShawn Guo
authored andcommitted
clk: imx8m: drop clk_hw_set_parent for A53
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 <[email protected]> Reviewed-by: Dong Aisheng <[email protected]> Reviewed-by: Leonard Crestez <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 849af49 commit cccc464

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

drivers/clk/imx/clk-imx8mm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,6 @@ static int imx8mm_clocks_probe(struct platform_device *pdev)
614614
hws[IMX8MM_ARM_PLL_OUT]->clk,
615615
hws[IMX8MM_CLK_A53_DIV]->clk);
616616

617-
clk_hw_set_parent(hws[IMX8MM_CLK_A53_SRC], hws[IMX8MM_SYS_PLL1_800M]);
618-
clk_hw_set_parent(hws[IMX8MM_CLK_A53_CORE], hws[IMX8MM_ARM_PLL_OUT]);
619-
620617
imx_check_clk_hws(hws, IMX8MM_CLK_END);
621618

622619
ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);

drivers/clk/imx/clk-imx8mn.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
565565
hws[IMX8MN_ARM_PLL_OUT]->clk,
566566
hws[IMX8MN_CLK_A53_DIV]->clk);
567567

568-
clk_hw_set_parent(hws[IMX8MN_CLK_A53_SRC], hws[IMX8MN_SYS_PLL1_800M]);
569-
clk_hw_set_parent(hws[IMX8MN_CLK_A53_CORE], hws[IMX8MN_ARM_PLL_OUT]);
570-
571568
imx_check_clk_hws(hws, IMX8MN_CLK_END);
572569

573570
ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);

drivers/clk/imx/clk-imx8mp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
735735
hws[IMX8MP_ARM_PLL_OUT]->clk,
736736
hws[IMX8MP_CLK_A53_DIV]->clk);
737737

738-
clk_hw_set_parent(hws[IMX8MP_CLK_A53_SRC], hws[IMX8MP_SYS_PLL1_800M]);
739-
clk_hw_set_parent(hws[IMX8MP_CLK_A53_CORE], hws[IMX8MP_ARM_PLL_OUT]);
740-
741738
imx_check_clk_hws(hws, IMX8MP_CLK_END);
742739

743740
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);

drivers/clk/imx/clk-imx8mq.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
599599
hws[IMX8MQ_ARM_PLL_OUT]->clk,
600600
hws[IMX8MQ_CLK_A53_DIV]->clk);
601601

602-
clk_hw_set_parent(hws[IMX8MQ_CLK_A53_SRC], hws[IMX8MQ_SYS1_PLL_800M]);
603-
clk_hw_set_parent(hws[IMX8MQ_CLK_A53_CORE], hws[IMX8MQ_ARM_PLL_OUT]);
604-
605602
imx_check_clk_hws(hws, IMX8MQ_CLK_END);
606603

607604
err = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);

0 commit comments

Comments
 (0)