Re: [PATCH v2 1/2] clk: renesas: rzg2l-cpg: Use devres API to register clocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Prabhakar,

On Mon, Jul 15, 2024 at 12:37 PM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> We are using devres APIs for divider, mux and pll5 clocks so for
> consistency use the devres APIs for module, fixed factor and PLL clocks.
>
> While at it switched to clk_hw_register() instead of clk_register()
> as this has been marked as deprecated interface.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> ---
> v1->v2
> - Propagate error code from rzg2l_cpg_pll_clk_register() if
>   devm_clk_hw_register() fails
> - Used devm_clk_hw_register_fixed_factor() for fixed factor clock
> - Set error pointer in rzg2l_cpg_register_mod_clk() if
>   devm_clk_hw_register() failed

Thanks for the update!

> --- a/drivers/clk/renesas/rzg2l-cpg.c
> +++ b/drivers/clk/renesas/rzg2l-cpg.c
> @@ -1116,6 +1121,8 @@ rzg2l_cpg_register_core_clk(const struct cpg_core_clk *core,
>                 clk = of_clk_get_by_name(priv->dev->of_node, core->name);
>                 break;
>         case CLK_TYPE_FF:
> +               struct clk_hw *clk_hw;

I will move this up while applying, to match the style of the rest of
the file.

> +
>                 WARN_DEBUG(core->parent >= priv->num_core_clks);
>                 parent = priv->clks[core->parent];
>                 if (IS_ERR(parent)) {

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
i.e. will queue in renesas-clk for v6.12.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux