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)
commit9d2b563bc23acfa93e7716b3396fd2f79fa8f0cd
tree6547a2f8d4c086617313eebd54fc997e1000134a
parentee08e24c2e761e6aa3ef2c03cc2004e11fe111b3
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