OSDN Git Service

pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues
authorBrian Masney <masneyb@onstation.org>
Thu, 1 Nov 2018 00:11:47 +0000 (20:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:32 +0000 (09:17 +0100)
commitbad4da12b7977e562e48ceee914d290e66768396
tree185de3c3c1f5331fd7e7fb6756d9a01e30930859
parentc24fe7807320ca9e881ee30e1a54b71b2c05ee1e
pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues

[ Upstream commit 149a96047237574b756d872007c006acd0cc6687 ]

When attempting to setup up a gpio hog, device probing would repeatedly
fail with -EPROBE_DEFERED errors. It was caused by a circular dependency
between the gpio and pinctrl frameworks. If the gpio-ranges property is
present in device tree, then the gpio framework will handle the gpio pin
registration and eliminate the circular dependency.

See Christian Lamparter's commit a86caa9ba5d7 ("pinctrl: msm: fix
gpio-hog related boot issues") for a detailed commit message that
explains the issue in much more detail. The code comment in this commit
came from Christian's commit.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c