lkml.org 
[lkml]   [2019]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/3] clk: meson: g12a: fix cpu clock rate setting
    Date
    CLK_SET_RATE_NO_REPARENT is wrongly set on the g12a cpu premux0 clocks
    flags, and CLK_SET_RATE_PARENT is required for the g12a cpu premux0 clock
    and the g12b cpub premux0 clock, otherwise CCF always selects the SYS_PLL
    clock to feed the cpu cluster.

    Fixes: ffae8475b90c ("clk: meson: g12a: add notifiers to handle cpu clock change")
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    ---
    drivers/clk/meson/g12a.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
    index ea4c791f106d..33c7e04b4a82 100644
    --- a/drivers/clk/meson/g12a.c
    +++ b/drivers/clk/meson/g12a.c
    @@ -353,8 +353,7 @@ static struct clk_regmap g12a_cpu_clk_premux0 = {
    { .hw = &g12a_fclk_div3.hw },
    },
    .num_parents = 3,
    - /* This sub-tree is used a parking clock */
    - .flags = CLK_SET_RATE_NO_REPARENT,
    + .flags = CLK_SET_RATE_PARENT,
    },
    };

    @@ -533,6 +532,7 @@ static struct clk_regmap g12b_cpub_clk_premux0 = {
    { .hw = &g12a_fclk_div3.hw },
    },
    .num_parents = 3,
    + .flags = CLK_SET_RATE_PARENT,
    },
    };

    --
    2.22.0
    \
     
     \ /
      Last update: 2019-09-19 11:37    [W:2.594 / U:1.528 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site