Re: 0001-add-amlogic-gpio-to-irq
From: Linus Walleij
Date: Fri Dec 04 2020 - 04:14:57 EST
Hi Lisheng,
this patch got a bit mangled but I get where you're going.
I think Meson needs to be augmented to use hierarchical gpiolib irqchip
because this seems to be what the system is doing.
So start with drivers/pinctrl/meson/Kconfig and add:
select GPIOLIB_IRQCHIP
select IRQ_DOMAIN_HIEARARCHY
Then use the generic hierarchical gpiolib irqchip as described
in Documentation/driver-api/gpio/driver.rst
Type
git grep child_to_parent_hwirq
for several examples of how to do this.
Yours,
Linus Walleij