OSDN Git Service

pinctrl: bcm2835: implement hook for missing gpio-ranges
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 9 Apr 2022 09:51:29 +0000 (11:51 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Apr 2022 14:12:08 +0000 (16:12 +0200)
commitd2b67744fd99b06555b7e4d67302ede6c7c6a638
tree2132c37a27bc23117e79197d649151c49050f61e
parent3550bba25d5587a701e6edf20e20984d2ee72c78
pinctrl: bcm2835: implement hook for missing gpio-ranges

The commit c8013355ead6 ("ARM: dts: gpio-ranges property is now required")
fixed the GPIO probing issues caused by "pinctrl: bcm2835: Change init
order for gpio hogs". This changed only the kernel DTS files. Unfortunately
it isn't guaranteed that these files are shipped to all users.

So implement the necessary backward compatibility for BCM2835 and
BCM2711 platform.

Fixes: 266423e60ea1 ("pinctrl: bcm2835: Change init order for gpio hogs")
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>
Link: https://lore.kernel.org/r/20220409095129.45786-3-stefan.wahren@i2se.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c