]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.42/clk-meson-gxbb-round-the-vdec-dividers-to-closest.patch
Linux 4.19.42
[thirdparty/kernel/stable-queue.git] / releases / 4.19.42 / clk-meson-gxbb-round-the-vdec-dividers-to-closest.patch
CommitLineData
e7e2c20d
SL
1From e7fdade12497265520560ce7dfa8e7db594f9b9d Mon Sep 17 00:00:00 2001
2From: Maxime Jourdan <mjourdan@baylibre.com>
3Date: Tue, 19 Mar 2019 11:25:37 +0100
4Subject: clk: meson-gxbb: round the vdec dividers to closest
5
6[ Upstream commit 9b70c697e87286ade406e6a02091757307dd4b7c ]
7
8We want the video decoder clocks to always round to closest. While the
9muxes are already using CLK_MUX_ROUND_CLOSEST, the corresponding
10CLK_DIVIDER_ROUND_CLOSEST was forgotten for the dividers.
11
12Fix this by adding the flag to the two vdec dividers.
13
14Fixes: a565242eb9fc ("clk: meson: gxbb: add the video decoder clocks")
15Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com>
16Acked-by: Neil Armstrong <narmstrong@baylibre.com>
17Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
18Link: https://lkml.kernel.org/r/20190319102537.2043-1-mjourdan@baylibre.com
19Signed-off-by: Sasha Levin <sashal@kernel.org>
20---
21 drivers/clk/meson/gxbb.c | 2 ++
22 1 file changed, 2 insertions(+)
23
24diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c
25index 6628ffa31383a..4d4f6d842c31c 100644
26--- a/drivers/clk/meson/gxbb.c
27+++ b/drivers/clk/meson/gxbb.c
28@@ -1571,6 +1571,7 @@ static struct clk_regmap gxbb_vdec_1_div = {
29 .offset = HHI_VDEC_CLK_CNTL,
30 .shift = 0,
31 .width = 7,
32+ .flags = CLK_DIVIDER_ROUND_CLOSEST,
33 },
34 .hw.init = &(struct clk_init_data){
35 .name = "vdec_1_div",
36@@ -1616,6 +1617,7 @@ static struct clk_regmap gxbb_vdec_hevc_div = {
37 .offset = HHI_VDEC2_CLK_CNTL,
38 .shift = 16,
39 .width = 7,
40+ .flags = CLK_DIVIDER_ROUND_CLOSEST,
41 },
42 .hw.init = &(struct clk_init_data){
43 .name = "vdec_hevc_div",
44--
452.20.1
46