From: dkl Date: Wed, 30 Apr 2014 10:14:35 +0000 (+0800) Subject: rk3288: fix the bug when dclk_lcdc select gpll as parent X-Git-Tag: firefly_0821_release~5391 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d86c0abe7fba31bbc978cf0f8efe823bf0378c65;p=firefly-linux-kernel-4.4.55.git rk3288: fix the bug when dclk_lcdc select gpll as parent --- diff --git a/drivers/clk/rockchip/clk-ops.c b/drivers/clk/rockchip/clk-ops.c index 604a94f8b916..d80bff0c10d8 100644 --- a/drivers/clk/rockchip/clk-ops.c +++ b/drivers/clk/rockchip/clk-ops.c @@ -572,6 +572,7 @@ static long clk_3288_dclk_lcdc0_determine_rate(struct clk_hw *hw, unsigned long if((rate <= (297*MHZ)) && ((297*MHZ)%rate == 0)) { *best_parent_p = gpll; best = rate; + *best_parent_rate = 297*MHZ; } else { *best_parent_p = cpll; div = RK3288_LIMIT_PLL_VIO0/rate; @@ -630,6 +631,7 @@ static long clk_3288_dclk_lcdc1_determine_rate(struct clk_hw *hw, unsigned long if((rate <= (297*MHZ)) && ((297*MHZ)%rate == 0)) { *best_parent_p = gpll; best = rate; + *best_parent_rate = 297*MHZ; } else { *best_parent_p = cpll; div = RK3288_LIMIT_PLL_VIO1/rate;