Skip to content

Commit

Permalink
DNI: rp1: clk: Remove CLK_IGNORE_UNUSED flags
Browse files Browse the repository at this point in the history
There should be no issue in disabling the RP1 clocks as long as
the kernel knows about all consumers.

Start with removing it from rp1_register_clock, but observe that
ethernet stops working, and this seems to be due to RP1_CLK_ETH being
required. Potentially a load of other things are broken though and I
just haven't tested them.
  • Loading branch information
6by9 committed Nov 8, 2024
1 parent 016363d commit 1061d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/clk-rp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ static struct clk_hw *rp1_register_clock(struct rp1_clockman *clockman,
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);
Expand Down Expand Up @@ -1909,6 +1909,7 @@ static const struct rp1_clk_desc clk_desc_array[] = {
.div_int_max = DIV_INT_8BIT_MAX,
.max_freq = 125 * MHz,
.fc0_src = FC_NUM(4, 6),
.flags = CLK_IGNORE_UNUSED,
),

[RP1_CLK_PWM0] = REGISTER_CLK(
Expand Down

0 comments on commit 1061d14

Please sign in to comment.