]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: qcom: spmi-mpp: add support for hierarchical IRQ chip
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 8 Oct 2021 01:25:15 +0000 (04:25 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 17 Oct 2021 21:32:46 +0000 (23:32 +0200)
commit6970c51a381e620117b83d537ea21f33ddd3bffa
tree14157bf06a0d87ff292f8a8f4112199c71d6f019
parent06e08a092e903dbfa22b508e24c956ac24021dd2
pinctrl: qcom: spmi-mpp: add support for hierarchical IRQ chip

spmi-mpp 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 spmi-mpp code to correct this issue.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211008012524.481877-17-dmitry.baryshkov@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-mpp.c