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

Linus Walleij linus.walleij at linaro.org
Fri Jun 18 05:57:18 PDT 2021


On Thu, Jun 17, 2021 at 4:46 PM Fabien Dessenne
<fabien.dessenne at foss.st.com> 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 at foss.st.com>

Patch applied for fixes.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list