Re: [PATCH v3 2/5] gpio/aspeed: Fix incorrect number of banks

From: Linus Walleij
Date: Wed Sep 11 2019 - 06:05:02 EST


On Fri, Sep 6, 2019 at 7:26 AM Rashmica Gupta <rashmica.g@xxxxxxxxx> wrote:

> The current calculation for the number of GPIO banks is only correct if
> the number of GPIOs is a multiple of 32 (if there were 31 GPIOs we would
> currently say there are 0 banks, which is incorrect).
>
> Fixes: 361b79119a4b7 ('gpio: Add Aspeed driver')
>
> Signed-off-by: Rashmica Gupta <rashmica.g@xxxxxxxxx>
> Reviewed-by: Andrew Jeffery <andrew@xxxxxxxx>

Patch applied.

Yours,
Linus Walleij