linux-uconsole/drivers/pinctrl/qcom
Brian Masney 095fe93075 pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues
[ Upstream commit 7ed0785577 ]

When attempting to setup up a gpio hog, device probing will repeatedly
fail with -EPROBE_DEFERED errors. It is 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 a86caa9ba5 ("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.

I did not test this change against any hardware supported by this
particular driver, however I was able to validate this same fix works
for pinctrl-spmi-gpio.c using a LG Nexus 5 (hammerhead) phone.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-13 08:51:26 +01:00
..
Kconfig
Makefile
pinctrl-apq8064.c
pinctrl-apq8084.c
pinctrl-ipq4019.c
pinctrl-ipq8064.c
pinctrl-ipq8074.c
pinctrl-mdm9615.c
pinctrl-msm.c pinctrl: msm: Really mask level interrupts to prevent latching 2018-08-29 09:38:50 +02:00
pinctrl-msm.h
pinctrl-msm8x74.c
pinctrl-msm8660.c
pinctrl-msm8916.c
pinctrl-msm8960.c
pinctrl-msm8994.c
pinctrl-msm8996.c
pinctrl-msm8998.c
pinctrl-qdf2xxx.c
pinctrl-sdm845.c
pinctrl-spmi-gpio.c pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues 2019-12-01 09:17:32 +01:00
pinctrl-spmi-mpp.c pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant 2018-11-13 11:08:29 -08:00
pinctrl-ssbi-gpio.c pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues 2019-12-13 08:51:26 +01:00
pinctrl-ssbi-mpp.c