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

From: Asmaa Mnebhi
Date: Tue Jul 11 2023 - 08:30:40 EST


> > 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?
>
Apologies, I might have misunderstood your previous comment. I thought you asked me to split it again so that it is a rebased continuation of the approved old patches.
To avoid any further misunderstandings on my part , could you please confirm the following:
1) I will create one patch combining both
2) The tag for this one patch will be "[PATCH v2] gpio: mmio: handle "ngpios" properly in bgpio_init()"
And Reviewed-By Andy and Linus.
3) I will add in the commit message , a changelog section as shown below:
Signed-off-by: Asmaa Mnebhi <asmaa@xxxxxxxxxx>
---
V1->v2:
- rebase + combination of the 2 patches.