Re: [PATCH 7/9] reset: make the provider of reset-gpios the parent of the reset device

From: Bartosz Golaszewski

Date: Tue Oct 21 2025 - 11:23:46 EST


On Tue, Oct 21, 2025 at 5:03 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> On Tue, Oct 21, 2025 at 05:55:02PM +0300, Andy Shevchenko wrote:
> > On Tue, Oct 21, 2025 at 11:39:41AM +0200, Bartosz Golaszewski wrote:
> > > On Tue, Oct 21, 2025 at 11:31 AM Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:
> > > > On Di, 2025-10-21 at 11:27 +0200, Bartosz Golaszewski wrote:
>
> [...]
>
> > > > No need to convert all existing drivers right away, but I'd like to see
> > > > a user that benefits from the conversion.
> > > >
> > >
> > > The first obvious user will be the reset-gpio driver which will see
> > > its core code simplified as we won't need to cast between OF and
> > > fwnodes.
> >
> > +1 to Bart's work. reset-gpio in current form is useless in all my cases
> > (it's OF-centric in 2025! We should not do that in a new code).
> >
> > More over, conversion to reset-gpio from open coded GPIO APIs is a clear
> > regression and I want to NAK all those changes (if any already done) for
> > the discrete components that may be used outside of certainly OF-only niche of
> > the platforms.
>
> To be clear, the conversion that's done while reset-gpio is kept OF-centric.
> I'm in favour of using it, but we need to make it agnostic.
>

As of now, the whole reset framework is completely OF-centric, I don't
know what good blocking any such conversions would bring? I intend to
convert the reset core but not individual drivers.

Bart