[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbvKWcD04SLLBOBuZWzN64xpVv1nfCXZGcSp9cs0MPivQ@mail.gmail.com>
Date: Fri, 4 Dec 2020 10:13:40 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: 林圣欢 <linshenghuan@...gtu-china.com>
Cc: khilman <khilman@...libre.com>,
narmstrong <narmstrong@...libre.com>,
jbrunet <jbrunet@...libre.com>,
"martin.blumenstingl" <martin.blumenstingl@...glemail.com>,
linux-gpio <linux-gpio@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-amlogic <linux-amlogic@...ts.infradead.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: 0001-add-amlogic-gpio-to-irq
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
Powered by blists - more mailing lists