Re: [RFC PATCH 4/5] gpio: mmio: convert accessors to generic register descriptors
From: Jose Javier Rodriguez Barbarin
Date: Fri Apr 10 2026 - 03:10:57 EST
On Thu, Apr 09, 2026 at 10:07:24AM +0200, Linus Walleij wrote:
> Hi Jose,
>
> thanks for your patch!
>
Hi Linus,
Thanks for your answer
> On Tue, Apr 7, 2026 at 8:49 PM Jose Javier Rodriguez Barbarin
> <dev-josejavier.rodriguez@xxxxxxxxxx> wrote:
>
> > Convert the gpio-mmio accessors to use struct gpio_chip_reg instead of
> > the previous MMIO-only register type.
> >
> > This allows the same accessors to operate on both MMIO and PMIO
> > registers and aligns gpio-mmio with the updated gpio_generic_chip API.
> >
> > Signed-off-by: Jose Javier Rodriguez Barbarin <dev-josejavier.rodriguez@xxxxxxxxxx>
>
> This should work the same fine with a union as described per
> patch 1, and this is where that will start saving a bunch of memory.
>
> Possibly squash patch 1 into this patch? The new struct/union
> isn't used until here.
Yes, I can squash both patches. I sent them separated to make a quick
introduction of the new structure in first patch but as you pointed
out, it is better to squash them.
>
> Yours,
> Linus Walleij
Regards,
Javier R.