Skip to content

Commit

Permalink
clk: stm32mp1: remove error for disabled clock in stm32mp1_clk_get_pa…
Browse files Browse the repository at this point in the history
…rent

To disabled a clock in clock tree initialization for a mux of STM32MP15,
the selected clock source index is set with the latest possible index for
the number of bit used. Today this valid configuration cause a error
in U-Boot messages, for example with CLK_ETH_DISABLED, when this clock
is not needed for the used ETH PHY without crystal:

   no parents defined for clk id 123

This patch change the level of this message to avoid this trace for
valid clock tree.

Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
  • Loading branch information
patrickdelaunay authored and Patrice Chotard committed Aug 16, 2023
1 parent b3d97f8 commit 141e232
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/stm32/clk-stm32mp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ static int stm32mp1_clk_get_parent(struct stm32mp1_clk_priv *priv,
return sel[s].parent[p];
}

log_err("no parents defined for clk id %d\n", (u32)id);
/* clock is DISABLED when the clock src is not in clk_parent[] range */
log_debug("no parents defined for clk id %d\n", (u32)id);

return -EINVAL;
}
Expand Down

0 comments on commit 141e232

Please sign in to comment.