]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
clk: qcom: gcc: Use floor ops for SDCC clocks
authorTaniya Das <tdas@codeaurora.org>
Mon, 9 Sep 2019 07:44:10 +0000 (13:14 +0530)
committerStephen Boyd <sboyd@kernel.org>
Mon, 9 Sep 2019 11:39:12 +0000 (04:39 -0700)
Update global clock controller SDCC2/4 clocks to use the floor rcg ops,
so as to use the rounded down clock rates for these clocks.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/20190909074410.18977-1-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-ipq8074.c
drivers/clk/qcom/gcc-msm8998.c
drivers/clk/qcom/gcc-sdm660.c
drivers/clk/qcom/gcc-sm8150.c

index 39ade58b4ada499317ebd8f6c12bed6b1dc0a964..e01f5f591d1e2507846b966b8a4768504068ec54 100644 (file)
@@ -1108,7 +1108,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
                .name = "sdcc2_apps_clk_src",
                .parent_names = gcc_xo_gpll0_gpll2_gpll0_out_main_div2,
                .num_parents = 4,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };
 
index 033688264c7b74503fedeadd9229e98e89866a3f..091acd59c1d6462cc3d7a739460938f9c410f8d0 100644 (file)
@@ -1042,7 +1042,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
                .name = "sdcc2_apps_clk_src",
                .parent_names = gcc_parent_names_4,
                .num_parents = 4,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };
 
@@ -1066,7 +1066,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = {
                .name = "sdcc4_apps_clk_src",
                .parent_names = gcc_parent_names_1,
                .num_parents = 3,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };
 
index 8827db23066f5926894c3088ab71411346d8ec01..bf5730832ef3dea56fd1401a26fc9cb805041095 100644 (file)
@@ -787,7 +787,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
                .name = "sdcc2_apps_clk_src",
                .parent_names = gcc_parent_names_xo_gpll0_gpll0_early_div_gpll4,
                .num_parents = 4,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };
 
index 12ca2d14797f165f26ca4228926a4fe8428e9bbf..20877214acffdda8ac5662516629e8b619262518 100644 (file)
@@ -803,7 +803,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
                .parent_data = gcc_parents_6,
                .num_parents = 5,
                .flags = CLK_SET_RATE_PARENT,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };
 
@@ -828,7 +828,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
                .parent_data = gcc_parents_3,
                .num_parents = 3,
                .flags = CLK_SET_RATE_PARENT,
-               .ops = &clk_rcg2_ops,
+               .ops = &clk_rcg2_floor_ops,
        },
 };