]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: msm: Add ability for drivers to supply a reserved GPIO list
authorLee Jones <lee.jones@linaro.org>
Mon, 10 Jun 2019 08:42:08 +0000 (09:42 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Jun 2019 07:12:49 +0000 (09:12 +0200)
commit4c0efbfb2669aa99e43e5deee30f39afd69cad65
tree0ba0d492e10f06ac44834bdfa8fa94491f7e7b58
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
pinctrl: msm: Add ability for drivers to supply a reserved GPIO list

When booting MSM based platforms with Device Tree or some ACPI
implementations, it is possible to provide a list of reserved pins
via the 'gpio-reserved-ranges' and 'gpios' properties respectively.
However some ACPI tables are not populated with this information,
thus it has to come from a knowledgable device driver instead.

Here we provide the MSM common driver with additional support to
parse this informtion and correctly populate the widely used
'valid_mask'.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c
drivers/pinctrl/qcom/pinctrl-msm.h