[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260106155423992035a6@mail.local>
Date: Tue, 6 Jan 2026 16:54:23 +0100
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Biju Das <biju.das.jz@...renesas.com>
Cc: Frank Li <Frank.li@....com>,
Tommaso Merciai <tommaso.merciai.xr@...renesas.com>,
Tommaso Merciai <tomm.merciai@...il.com>,
"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
wsa+renesas <wsa+renesas@...g-engineering.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Geert Uytterhoeven <geert+renesas@...der.be>,
"magnus.damm" <magnus.damm@...il.com>,
"linux-i3c@...ts.infradead.org" <linux-i3c@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 1/4] i3c: renesas: Switch to clk_bulk API and store
clocks in private data
On 06/01/2026 15:41:10+0000, Biju Das wrote:
> > This is just more flexiable for clk schema. If your schema is simple enough check num_clks >
> > RENESAS_I3C_TCLK_IDX should be enough.
>
> For avoiding crash that check is sufficient, but as you said wrong dtb like crash
> can also lead to non-functional i3c device
>
> Eg:
>
> From bindings, we expect the below entries in DTS for RZ/G3S
>
> "pclk", "tclk" for RZ/G3S
>
> But user mistakenly just added "pclk", that will lead to kernel crash
>
> Or
>
> Swap the clocks
>
> "tclk", "pclk" this will lead to non-functional i3c device
>
> On both cases, user ignored DT binding check warnings.
>
> As you said crash is fatal, maybe stick with just num_clks > RENESAS_I3C_TCLK_IDX
Yes, this is enough
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists