gpio: thunderx: Switch to GPIOLIB_IRQCHIP
authorKevin Hao <haokexin@gmail.com>
Tue, 14 Jan 2020 08:28:21 +0000 (16:28 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jan 2020 10:18:29 +0000 (11:18 +0100)
commit7a9f4460f74d705014aaab1900be688d20c75909
tree3acec5f8f2892e8b873517a017db5df966e2ae70
parent880b7cf22e8ca08abd969b0f1c65a79121e025c5
gpio: thunderx: Switch to GPIOLIB_IRQCHIP

The main parts of this patch are from commit a7fc89f9d5fc ("gpio:
thunderx: Switch to GPIOLIB_IRQCHIP") and patch [1]. And also adjust
thunderx_gpio_child_to_parent_hwirq() and add
thunderx_gpio_populate_parent_alloc_info() to make sure that
the correct hwirq are passed to the parent msi irqdomain.

[1] https://patchwork.ozlabs.org/patch/1210180/

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://lore.kernel.org/r/20200114082821.14015-5-haokexin@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-thunderx.c