Re: [PATCH v3 2/3] clk: toshiba: introduce a TC9564 clock/reset driver
From: Philipp Zabel
Date: Thu Nov 26 2026 - 12:20:04 EST
On Do, 2026-11-26 at 06:59 -0600, Alex Elder wrote:
> On 11/26/26 3:42 AM, Philipp Zabel wrote:
> > On Mi, 2026-11-25 at 14:21 -0600, Alex Elder wrote:
[...]
> > > + /* Warn on any attempt to change state of a critical reset */
> > > + if (WARN_ON(id == RESET_I2C) || WARN_ON(id == RESET_PCIE))
> > > + return 0;
> >
> > Can't this be checked at reset_control_get() time (in fwnode_xlate) so
> > that critical reset controls aren't given out to consumers in the first
> > place?
>
> So I'd pass in a slightly modified fwnode_reset_simple_xlate()
> as the fwnode_xlate pointer? I hadn't thought about that, but
> it's a good suggestion.
Exactly, and don't forget to set fwnode_reset_n_cells.
regards
Philipp