From 1dea1f8ede94d70e51ac62fdd14d4896aa112f8c Mon Sep 17 00:00:00 2001 From: Jian Hu Date: Mon, 20 May 2019 14:46:03 +0800 Subject: [PATCH] clk: tm2: fix tm2 64bit hangup [1/1] PD#SWPL-8546 Problem: it hangup in tm2 64bit Solution: call clk_set_parent to set tl1_dsu_fixed_source_sel1 to 1G Verify: verified on tm2 ab311 Change-Id: I2e75c76aab3ba2510050592ea5f6c3069cfa9f4d Signed-off-by: Jian Hu --- drivers/amlogic/clk/tl1/tl1.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/clk/tl1/tl1.c b/drivers/amlogic/clk/tl1/tl1.c index 61eaf5f..c416293 100644 --- a/drivers/amlogic/clk/tl1/tl1.c +++ b/drivers/amlogic/clk/tl1/tl1.c @@ -1093,11 +1093,14 @@ static void __init tl1_clkc_init(struct device_node *np) ret = clk_notifier_register(parent_clk, &tl1_cpu_clk.clk_nb); /* set tl1_dsu_fixed_sel1 to 1G (default 24M) */ - ret = clk_set_rate(tl1_dsu_fixed_sel1.hw.clk, 1000000000); + ret = clk_set_parent(tl1_dsu_fixed_source_sel1.hw.clk, + tl1_fclk_div2.hw.clk); if (ret < 0) { - pr_err("set tl1_dsu_fixed_sel1 to 1G failed\n"); + pr_err("%s: failed to set parent for tl1_dsu_fixed_source_sel1\n", + __func__); return; } + /* * when change tl1_dsu_fixed_sel0, switch to * tl1_dsu_fixed_sel1 to avoid crash -- 2.7.4