[PATCH v7 04/14] clk: renesas: r8a78000: Add clk_hw to clk_map

Geert Uytterhoeven geert+renesas at glider.be
Wed Dec 2 02:05:15 PST 2026


Hi Wolfram,

On Wed, Dec 2, 2026, at 10:38, Wolfram Sang wrote:
> On Mon, Nov 30, 2026 at 02:12:35PM +0100, Geert Uytterhoeven wrote:
>> From: Geert Uytterhoeven <geert+renesas at glider.be>
>> 
>> Prepare for mapping to other than fixed-rate clocks by adding an array
>> of clk_hw pointers, indexed by the clock map entry index, and populating
>> it up-front.
>> 
>> Move r8a78000_cpg_priv.fixed_hws into get_hws(), as it is no longer
>> needed afterwards, and drop NUM_FIXED_CLKS.
>
> This one I didn't really get, but I trust you and Marek. Just some
> namespace issues I discovered now...

r8a78000_cpg_priv no longer contains the array of fixed clocks,
only the final mapping array.

>> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
>> Tested-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
>
> This one still stands. It works fine for me.
>
>> Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
>
>> -static const unsigned long fixed_clk_rates[NUM_FIXED_CLKS] = {
>> +static const unsigned long fixed_clk_rates[] = {
>
> r8a78000_fixed_clk_rates?
>
>> +static int clk_id_map_find(const struct clk_id_map *map, u32 dt_id)
>
> r8a78000_clk_id_map_find?
>
>> +static struct clk_hw **register_fixed_clks(struct device *dev)
>
> r8a78000_ prefix?
>
>> +static struct clk_hw **get_hws(struct r8a78000_cpg_priv *priv)
>
> r8a78000_ prefix?

Do we really need r8a78000_cpg_-prefixex (yes, including _cpg to be
consisten) for each and every local symbol?

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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



More information about the linux-arm-kernel mailing list