Re: [PATCH v2] gpio: mmio: fix calculation of bgpio_bits

From: Andy Shevchenko
Date: Tue Jul 11 2023 - 04:59:38 EST


On Tue, Jul 11, 2023 at 12:50 AM Asmaa Mnebhi <asmaa@xxxxxxxxxx> wrote:
>
> If the "ngpios" property is specified, bgpio_bits is calculated
> as the round up value of ngpio. At the moment, the only requirement
> specified is that the round up value must be a multiple of 8 but
> it should also be a power of 2 because we provide accessors based
> on the bank size in bgpio_setup_accessors().

Is this a fixup for the other patch? If so, then why did you split them again?

--
With Best Regards,
Andy Shevchenko