1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/6.12/target/linux/bcm27xx/patches-6.12/950-0573-rp1-clk-Remove-CLK_IGNORE_UNUSED-flags.patch
Ycarus (Yannick Chabanois) bdb9b0046f Add bcm27xx 6.12 test support
2024-12-20 14:17:26 +01:00

59 lines
2 KiB
Diff

From c4bcdaa52e667619d9e60b26868deeca6d346508 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Fri, 8 Nov 2024 17:37:08 +0000
Subject: [PATCH 573/697] rp1: clk: Remove CLK_IGNORE_UNUSED flags
There should be no issue in disabling the RP1 clocks as long as
the kernel knows about all consumers.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/clk/clk-rp1.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--- a/drivers/clk/clk-rp1.c
+++ b/drivers/clk/clk-rp1.c
@@ -1552,7 +1552,7 @@ static struct clk_hw *rp1_register_pll(s
init.num_parents = 1;
init.name = pll_data->name;
init.ops = &rp1_pll_ops;
- init.flags = pll_data->flags | CLK_IGNORE_UNUSED;
+ init.flags = pll_data->flags;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -1586,7 +1586,7 @@ static struct clk_hw *rp1_register_pll_p
init.num_parents = 1;
init.name = ph_data->name;
init.ops = &rp1_pll_ph_ops;
- init.flags = ph_data->flags | CLK_IGNORE_UNUSED;
+ init.flags = ph_data->flags;
ph = kzalloc(sizeof(*ph), GFP_KERNEL);
if (!ph)
@@ -1619,7 +1619,7 @@ static struct clk_hw *rp1_register_pll_d
init.num_parents = 1;
init.name = divider_data->name;
init.ops = &rp1_pll_divider_ops;
- init.flags = divider_data->flags | CLK_IGNORE_UNUSED;
+ init.flags = divider_data->flags;
divider = devm_kzalloc(clockman->dev, sizeof(*divider), GFP_KERNEL);
if (!divider)
@@ -1662,7 +1662,7 @@ static struct clk_hw *rp1_register_clock
init.num_parents =
clock_data->num_std_parents + clock_data->num_aux_parents;
init.name = clock_data->name;
- init.flags = clock_data->flags | CLK_IGNORE_UNUSED;
+ init.flags = clock_data->flags;
init.ops = &rp1_clk_ops;
clock = devm_kzalloc(clockman->dev, sizeof(*clock), GFP_KERNEL);
@@ -1692,7 +1692,6 @@ static struct clk_hw *rp1_register_varsr
init.parent_names = &ref_clock;
init.num_parents = 1;
init.name = name;
- init.flags = CLK_IGNORE_UNUSED;
init.ops = &rp1_varsrc_ops;
clock = devm_kzalloc(clockman->dev, sizeof(*clock), GFP_KERNEL);