Hi Biju, On Fri, 14 Mar 2025 at 15:59, Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote: > > From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > > On Thu, 6 Mar 2025 at 13:43, Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote: > > > The CAN-FD IP found on the RZ/G3E SoC is similar to R-Car Gen4, but it > > > has no external clock instead it has clk_ram, it has 6 channels and > > > supports 20 interrupts. Add support for RZ/G3E CAN-FD driver. > > > > > > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> > > > > Thanks for your patch! > > > > > --- a/drivers/net/can/rcar/rcar_canfd.c > > > +++ b/drivers/net/can/rcar/rcar_canfd.c > > > @@ -1979,6 +1991,7 @@ static int rcar_canfd_probe(struct platform_device *pdev) > > > u32 rule_entry = 0; > > > bool fdmode = true; /* CAN FD only mode - default */ > > > char name[9] = "channelX"; > > > + struct clk *clk_ram; > > > int i; > > > > > > info = of_device_get_match_data(dev); @@ -2068,6 +2081,11 @@ > > > static int rcar_canfd_probe(struct platform_device *pdev) > > > gpriv->extclk = !gpriv->info->only_internal_clks; > > > } > > > > > > + clk_ram = devm_clk_get_optional_enabled(dev, "ram_clk"); > > > + if (IS_ERR(clk_ram)) > > > + return dev_err_probe(dev, PTR_ERR(clk_ram), > > > + "cannot get ram clock\n"); > > > + > > > > clk_ram is unused. > > clk_ram is local variable and is used for error checking. > devm_clk_get_optional_enabled() is dev-res managed clock > and the will be enabled during probe() and get disabled during unbind > similar to "fck". Thanks! > Am I missing anything here? No, I had missed the "_enabled" part.... 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