Skip to contentSkip to conversation

clk: clk-flexgen: fix clock-critical handling

PATCH Applied Alain Volmat 3 participants 3 messages Mar 22, 2020 – May 27, 2020 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: clk-flexgen: fix clock-critical handling

Fixes an issue leading to having all clocks following a critical clocks marked as well as criticals.

Fixes fa6415affe20 ("clk: st: clk-flexgen: Detect critical clocks")
---
 drivers/clk/st/clk-flexgen.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/st/clk-flexgen.c +1 -0
index 4413b6e04a8e..55873d4b7603 100644
@@ -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);
 
 		/*
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Alain

Quoted 15 lines · Alain Volmat

Fixes an issue leading to having all clocks following a critical clocks marked as well as criticals.

Fixes fa6415affe20 ("clk: st: clk-flexgen: Detect critical clocks")
---
 drivers/clk/st/clk-flexgen.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/st/clk-flexgen.c +0 -0
index 4413b6e04a8e..55873d4b7603 100644

drivers/clk/st/clk-flexgen.c static void __init st_of_flexgen_setup(struct device_node *np) · line 381

Quoted 7 lines
drivers/clk/st/clk-flexgen.c +1 -0
@@ -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);
 
 		/*

Thanks

Patrice