+27
−12
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
[ Upstream commit 9b4924da4711674e62d97d4f5360446cc78337af ]
This patch is based on commit a86caa9ba5d7 ("pinctrl: msm: fix gpio-hog
related boot issues").
It fixes the issue that the gpio ranges needs to be defined before
gpiochip_add().
Therefore, we also have to swap the order of registering the pinctrl
driver and registering the gpio chip.
You also have to add the "gpio-ranges" property to the pinctrl device
node to get it finally working.
Signed-off-by:
Martin Schiller <ms@dev.tdt.de>
Acked-by:
John Crispin <john@phrozen.org>
Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
Signed-off-by:
Sasha Levin <sashal@kernel.org>