Re: [PATCH] pinctrl: stm32: fix the reported number of GPIO lines per bank

From: Linus Walleij
Date: Fri Jun 18 2021 - 08:57:33 EST


On Thu, Jun 17, 2021 at 4:46 PM Fabien Dessenne
<fabien.dessenne@xxxxxxxxxxx> wrote:

> Each GPIO bank supports a variable number of lines which is usually 16, but
> is less in some cases : this is specified by the last argument of the
> "gpio-ranges" bank node property.
> Report to the framework, the actual number of lines, so the libgpiod
> gpioinfo command lists the actually existing GPIO lines.
>
> Fixes: 1dc9d289154b ("pinctrl: stm32: add possibility to use gpio-ranges to declare bank range")
> Signed-off-by: Fabien Dessenne <fabien.dessenne@xxxxxxxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij