]> git.baikalelectronics.ru Git - kernel.git/commit
qcom: ssbi-gpio: add support for hierarchical IRQ chip
authorBrian Masney <masneyb@onstation.org>
Fri, 8 Feb 2019 02:16:26 +0000 (21:16 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Feb 2019 08:32:10 +0000 (09:32 +0100)
commit898011541858ddea06df83efd91d6c1ea9f211e0
tree6547a2f8d4c086617313eebd54fc997e1000134a
parent6d90e59649abe9dd2b7beab61420474def1e14e6
qcom: ssbi-gpio: add support for hierarchical IRQ chip

ssbi-gpio did not have any irqchip support so consumers of this in
device tree would need to call gpio[d]_to_irq() in order to get the
proper IRQ on the underlying PMIC. IRQ chips in device tree should
be usable from the start without the consumer having to make an
additional call to get the proper IRQ on the parent. This patch adds
hierarchical IRQ chip support to the ssbi-gpio code to correct this
issue.

The constant PM8XXX_GPIO_PHYSICAL_OFFSET is introduced to replace the
hardcoded '1' that previously existed in two places in this driver to
improve code readability.

This change was tested on an APQ8060 DragonBoard.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/Kconfig
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c