Files
linux/drivers
Fabien Dessenne f5b02912e2 pinctrl: stm32: consider the GPIO offset to expose all the GPIO lines
commit b67210cc21 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-29 12:26:03 +01:00
..
2021-12-14 11:32:40 +01:00
2021-12-22 09:30:53 +01:00
2021-07-20 16:05:42 +02:00
2021-11-18 14:03:42 +01:00
2021-03-04 11:38:21 +01:00
2020-12-03 10:00:23 +01:00
2021-11-18 14:03:51 +01:00
2021-11-18 14:04:20 +01:00
2020-10-27 19:23:04 +01:00
2020-12-30 11:53:53 +01:00