Thread (118 messages) 118 messages, 8 authors, 2023-09-28

Re: [PATCH 10/37] clk: renesas: rzg2l: use core->name for clock name

From: claudiu beznea <claudiu.beznea@tuxon.dev>
Date: 2023-09-15 05:48:12
Also in: linux-arm-kernel, linux-clk, linux-gpio, linux-mmc, linux-renesas-soc, linux-serial, lkml


On 14.09.2023 16:04, Geert Uytterhoeven wrote:
Hi Claudiu,

On Tue, Sep 12, 2023 at 6:52 AM Claudiu [off-list ref] wrote:
quoted
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

core->name already contains the clock name thus, there is no
need to check the GET_SHIFT(core->conf) to decide on it.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Thanks for your patch!
quoted
--- a/drivers/clk/renesas/rzg2l-cpg.c
+++ b/drivers/clk/renesas/rzg2l-cpg.c
@@ -266,7 +266,7 @@ rzg2l_cpg_sd_mux_clk_register(const struct cpg_core_clk *core,
        clk_hw_data->priv = priv;
        clk_hw_data->conf = core->conf;

-       init.name = GET_SHIFT(core->conf) ? "sd1" : "sd0";
+       init.name = core->name;
Note that this does change the case of the names (e.g. "SD0" => "sd0").
I guess no one cares...
As of my experiments and investigation we should be good with it.
quoted
        init.ops = &rzg2l_cpg_sd_clk_mux_ops;
        init.flags = 0;
        init.num_parents = core->num_parents;
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help