Stefan Wahren 3550bba25d gpiolib: of: Introduce hook for missing gpio-ranges
Since commit 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
the device tree nodes of GPIO controller need the gpio-ranges property to
handle gpio-hogs. Unfortunately it's impossible to guarantee that every new
kernel is shipped with an updated device tree binary.

In order to provide backward compatibility with those older DTB, we need a
callback within of_gpiochip_add_pin_range() so the relevant platform driver
can handle this case.

Fixes: 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220409095129.45786-2-stefan.wahren@i2se.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-04-21 16:12:07 +02:00
..
2022-03-28 17:29:53 -07:00
2022-03-04 13:41:57 +10:00
2022-04-01 09:37:18 -07:00
2022-03-24 13:13:26 -07:00
2022-02-25 09:36:06 +01:00
2022-03-24 19:37:53 -07:00
2022-03-24 16:19:43 -07:00
2022-04-01 10:32:46 -07:00
2022-04-03 12:26:01 -07:00
2022-04-02 10:32:14 -07:00