[PATCH] clk: Unconditionally recursively en-/dis-able clocks

Sean Anderson seanga2 at gmail.com
Wed Sep 9 22:44:03 CEST 2020


On 6/24/20 6:47 AM, Sean Anderson wrote:
> For clocks not in the CCF, their parents will not have UCLASS_CLK, so we
> just enable them as normal. The enable count is local to the struct clk,
> but this will never result in the actual en-/dis-able op being called
> (unless the same struct clk is enabled twice).
> 
> For clocks in the CCF, we always traverse up the tree when enabling.
> Previously, CCF clocks without id set would be skipped, stopping the
> traversal too early.
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
> This patch was previously part of [1]
> 
> [1] https://patchwork.ozlabs.org/project/uboot/list/?series=178480
> 
>  drivers/clk/clk-uclass.c | 60 ++++++++++++++++++----------------------
>  1 file changed, 27 insertions(+), 33 deletions(-)

Hi Lukas, can you have a look at this?

--Sean


More information about the U-Boot mailing list