android_kernel_samsung_a7y1.../drivers/pinctrl/qcom
Brian Masney efe6005753 pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues
[ Upstream commit 7ed07855773814337b9814f1c3e866df52ebce68 ]

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 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.

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>
2020-04-07 12:44:31 +02:00
..
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-apq8064.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-apq8084.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-ipq8064.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm8x74.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm8660.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm8916.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-msm8960.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-qdf2xxx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-spmi-gpio.c pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues 2020-04-07 12:36:40 +02:00
pinctrl-spmi-mpp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl-ssbi-gpio.c pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues 2020-04-07 12:44:31 +02:00
pinctrl-ssbi-mpp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30