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

Linus Walleij linus.walleij at linaro.org
Wed Sep 11 20:04:47 AEST 2019


On Fri, Sep 6, 2019 at 7:26 AM Rashmica Gupta <rashmica.g at gmail.com> 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 at gmail.com>
> Reviewed-by: Andrew Jeffery <andrew at aj.id.au>

Patch applied.

Yours,
Linus Walleij


More information about the Linux-aspeed mailing list