RE: [PATCH v4] gpio: mmio: handle "ngpios" properly in bgpio_init()

From: Asmaa Mnebhi
Date: Mon Mar 06 2023 - 17:39:36 EST


> Mon, Mar 06, 2023 at 04:12:37PM -0500, Asmaa Mnebhi kirjoitti:
> > bgpio_init() uses "sz" argument to populate ngpio, which is not
> > accurate. Instead, read the "ngpios" property from the DT and if it
> > doesn't exist, use the "sz" argument. With this change, drivers no
> > longer need to overwrite the ngpio variable after calling bgpio_init().
>
> Thank you!
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
>
> Sorry it took a bit longer for us to settle on this.

Thank you Andy!