]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Nov 2018 08:56:48 +0000 (09:56 +0100)
commitc61500f2aa86ce3c0024a2f26a9d7955f746ba28
treee27649fe7b0286385e7c65b9997ae92ba7bb22e4
parent2616100ae873315c91ab3165fbc0cb60cdd880f1
pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues

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 ec3c9580a180 ("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>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c