[PATCH] clk: stm32mp25: allow MDF kernel clock rate changes to propagate to parent

Gabriel Fernandez gabriel.fernandez at foss.st.com
Thu Oct 22 23:50:23 PDT 2026


From: Olivier Moysan <olivier.moysan at foss.st.com>

Add CLK_SET_RATE_PARENT to ck_ker_mdf1 to allow rate requests on the
MDF kernel clock to propagate to its parent clock, FLEXGEN_23.

Signed-off-by: Olivier Moysan <olivier.moysan at foss.st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez at foss.st.com>
---
This patch is independent from the other STM32MP25 RCC changes that I
am sending separately, and can be applied on its own.
---
 drivers/clk/stm32/clk-stm32mp25.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/stm32/clk-stm32mp25.c b/drivers/clk/stm32/clk-stm32mp25.c
index eb0bc918ecee..8f6fe30b19ca 100644
--- a/drivers/clk/stm32/clk-stm32mp25.c
+++ b/drivers/clk/stm32/clk-stm32mp25.c
@@ -999,7 +999,8 @@ static struct clk_stm32_gate ck_icn_p_mdf1 = {
 
 static struct clk_stm32_gate ck_ker_mdf1 = {
 	.gate_id = GATE_MDF1,
-	.hw.init = CLK_HW_INIT_INDEX("ck_ker_mdf1", FLEXGEN_23, &clk_stm32_gate_ops, 0),
+	.hw.init = CLK_HW_INIT_INDEX("ck_ker_mdf1", FLEXGEN_23, &clk_stm32_gate_ops,
+				     CLK_SET_RATE_PARENT),
 };
 
 /* OSPI */

---
base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a
change-id: 20261022-ups_mp25_clk_mdf-99ca54f9ac96

Best regards,
-- 
Gabriel Fernandez <gabriel.fernandez at foss.st.com>




More information about the linux-arm-kernel mailing list