]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: uniphier: Fix update register for CPU-gear
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 8 Feb 2019 02:25:23 +0000 (11:25 +0900)
committerStephen Boyd <sboyd@kernel.org>
Thu, 21 Feb 2019 21:50:23 +0000 (13:50 -0800)
Need to set the update bit in UNIPHIER_CLK_CPUGEAR_UPD to update
the CPU-gear value.

Fixes: d08f1f0d596c ("clk: uniphier: add CPU-gear change (cpufreq) support")
Cc: linux-stable@vger.kernel.org
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/uniphier/clk-uniphier-cpugear.c

index ec11f55594ad0d9ded3eb97ca2d3b2cd1f4e96f6..5d2d42b7e182b82dceffdb4329aa75a28950b54b 100644 (file)
@@ -47,7 +47,7 @@ static int uniphier_clk_cpugear_set_parent(struct clk_hw *hw, u8 index)
                return ret;
 
        ret = regmap_write_bits(gear->regmap,
-                               gear->regbase + UNIPHIER_CLK_CPUGEAR_SET,
+                               gear->regbase + UNIPHIER_CLK_CPUGEAR_UPD,
                                UNIPHIER_CLK_CPUGEAR_UPD_BIT,
                                UNIPHIER_CLK_CPUGEAR_UPD_BIT);
        if (ret)