From: Robert Jarzmik Date: Sun, 23 Oct 2016 12:19:28 +0000 (+0200) Subject: clk: pxa: b bit of clkcfg means fast bus X-Git-Tag: v5.15~12045^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c5145191b2c5351ebc049f9a7108a6548889d56;p=platform%2Fkernel%2Flinux-starfive.git clk: pxa: b bit of clkcfg means fast bus The meaning of this bit was inverted : - when set to 0, system bus clock is half of the CPU run clock - when set to 1, system bus clock is the CPU run clock Signed-off-by: Robert Jarzmik Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/pxa/clk-pxa27x.c b/drivers/clk/pxa/clk-pxa27x.c index 3930053..3b36e8d 100644 --- a/drivers/clk/pxa/clk-pxa27x.c +++ b/drivers/clk/pxa/clk-pxa27x.c @@ -291,9 +291,9 @@ static unsigned long clk_pxa27x_system_bus_get_rate(struct clk_hw *hw, if (osc_forced) return parent_rate; if (b) - return parent_rate / 2; - else return parent_rate; + else + return parent_rate / 2; } static u8 clk_pxa27x_system_bus_get_parent(struct clk_hw *hw)