]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.19.31/clk-uniphier-fix-update-register-for-cpu-gear.patch
Linux 4.14.108
[thirdparty/kernel/stable-queue.git] / releases / 4.19.31 / clk-uniphier-fix-update-register-for-cpu-gear.patch
1 From 521282237b9d78b9bff423ec818becd4c95841c2 Mon Sep 17 00:00:00 2001
2 From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
3 Date: Fri, 8 Feb 2019 11:25:23 +0900
4 Subject: clk: uniphier: Fix update register for CPU-gear
5
6 From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
7
8 commit 521282237b9d78b9bff423ec818becd4c95841c2 upstream.
9
10 Need to set the update bit in UNIPHIER_CLK_CPUGEAR_UPD to update
11 the CPU-gear value.
12
13 Fixes: d08f1f0d596c ("clk: uniphier: add CPU-gear change (cpufreq) support")
14 Cc: linux-stable@vger.kernel.org
15 Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
16 Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
17 Signed-off-by: Stephen Boyd <sboyd@kernel.org>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 drivers/clk/uniphier/clk-uniphier-cpugear.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/drivers/clk/uniphier/clk-uniphier-cpugear.c
25 +++ b/drivers/clk/uniphier/clk-uniphier-cpugear.c
26 @@ -47,7 +47,7 @@ static int uniphier_clk_cpugear_set_pare
27 return ret;
28
29 ret = regmap_write_bits(gear->regmap,
30 - gear->regbase + UNIPHIER_CLK_CPUGEAR_SET,
31 + gear->regbase + UNIPHIER_CLK_CPUGEAR_UPD,
32 UNIPHIER_CLK_CPUGEAR_UPD_BIT,
33 UNIPHIER_CLK_CPUGEAR_UPD_BIT);
34 if (ret)