]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: clk-flexgen: fix clock-critical handling
authorAlain Volmat <avolmat@me.com>
Sun, 22 Mar 2020 14:07:40 +0000 (15:07 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 08:14:06 +0000 (01:14 -0700)
Fixes an issue leading to having all clocks following a critical
clocks marked as well as criticals.

Fixes: 54932efd5516 ("clk: st: clk-flexgen: Detect critical clocks")
Signed-off-by: Alain Volmat <avolmat@me.com>
Link: https://lkml.kernel.org/r/20200322140740.3970-1-avolmat@me.com
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/st/clk-flexgen.c

index 4413b6e04a8ecb157883b54b650f1cb12602efff..55873d4b760324b4e82f77baa068c07bd4d77bff 100644 (file)
@@ -375,6 +375,7 @@ static void __init st_of_flexgen_setup(struct device_node *np)
                        break;
                }
 
+               flex_flags &= ~CLK_IS_CRITICAL;
                of_clk_detect_critical(np, i, &flex_flags);
 
                /*