WSL2-Linux-Kernel/drivers/pinctrl/stm32
Fabien Dessenne b67210cc21 pinctrl: stm32: consider the GPIO offset to expose all the GPIO lines
Consider the GPIO controller offset (from "gpio-ranges") to compute the
maximum GPIO line number.
This fixes an issue where gpio-ranges uses a non-null offset.
  e.g.: gpio-ranges = <&pinctrl 6 86 10>
        In that case the last valid GPIO line is not 9 but 15 (6 + 10 - 1)

Cc: stable@vger.kernel.org
Fixes: 67e2996f72 ("pinctrl: stm32: fix the reported number of GPIO lines per bank")
Reported-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
Link: https://lore.kernel.org/r/20211215095808.621716-1-fabien.dessenne@foss.st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2021-12-16 04:14:56 +01:00
..
Kconfig pinctrl: stm32: Add STM32MP135 SoC support 2021-08-10 14:45:27 +02:00
Makefile pinctrl: stm32: Add STM32MP135 SoC support 2021-08-10 14:45:27 +02:00
pinctrl-stm32.c pinctrl: stm32: consider the GPIO offset to expose all the GPIO lines 2021-12-16 04:14:56 +01:00
pinctrl-stm32.h pinctrl: stm32: Use the correct style for SPDX License Identifier 2019-12-12 11:33:51 +01:00
pinctrl-stm32f429.c
pinctrl-stm32f469.c
pinctrl-stm32f746.c
pinctrl-stm32f769.c
pinctrl-stm32h743.c
pinctrl-stm32mp135.c pinctrl: stm32: Add STM32MP135 SoC support 2021-08-10 14:45:27 +02:00
pinctrl-stm32mp157.c pinctrl: stm32: Enable suspend/resume for stm32mp157c SoC 2019-05-24 13:21:45 +02:00