Re: [RFC PATCH 4/5] gpio: mmio: convert accessors to generic register descriptors

From: Linus Walleij

Date: Thu Apr 09 2026 - 04:13:01 EST


Hi Jose,

thanks for your patch!

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.

Yours,
Linus Walleij