Hi Prabhakar, On Tue, Jun 11, 2024 at 12:03 AM Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > On Tue, Jun 4, 2024 at 5:01 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > > On Fri, May 24, 2024 at 10:29 AM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > > > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx> > > > > > > Add CPG core helper wrapper driver for RZ/V2H SoC. > > > > What is a "core helper wrapper"? ;-) > > > As this file basically uses core API for clock and reset, I worded the > commit as such. > > > Looking at the structure, this looks like a family-specific clock driver? > Yes, as the CPG on RZ/V2H varies quite a bit compared to RZ/G2L I have > introduced a family-specific clock driver > > > Will there be more RZ/V2H-alike SoCs? > > > I'm not sure about it tbh! OK, I see we did the same when introducing RZ/G2L support. > > > --- /dev/null > > > +++ b/drivers/clk/renesas/rzv2h-cpg.h > > > +/** > > > + * struct rzv2h_cpg_info - SoC-specific CPG Description > > > + * > > > + * @core_clks: Array of Core Clock definitions > > > + * @num_core_clks: Number of entries in core_clks[] > > > + * @num_total_core_clks: Total number of Core Clocks (exported + internal) > > > + * > > > + * @mod_clks: Array of Module Clock definitions > > > + * @num_mod_clks: Number of entries in mod_clks[] > > > + * @num_hw_mod_clks: Number of Module Clocks supported by the hardware > > > + * > > > + * @resets: Array of Module Reset definitions > > > + * @num_resets: Number of entries in resets[] > > > + * > > > + * @crit_mod_clks: Array with Module Clock IDs of critical clocks that > > > + * should not be disabled without a knowledgeable driver > > > + * @num_crit_mod_clks: Number of entries in crit_mod_clks[] > > > + * @pll_get_clk1_offset: Function pointer to get PLL CLK1 offset > > > + * @pll_get_clk2_offset: Function pointer to get PLL CLK2 offset > > > + */ > > > +struct rzv2h_cpg_info { > > > > > + /* function pointers for PLL information */ > > > + int (*pll_get_clk1_offset)(int clk); > > > + int (*pll_get_clk2_offset)(int clk); > > > > Why are these function pointers? I meant "... and not pointer/len pairs?". > To get the offsets for PLL CLK1/2. But I plan to drop these and get > the offset from conf instead. OK 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