Re: [PATCH v3 2/2] gpiolib: support parsing gpio three-cell interrupts scheme

From: Bartosz Golaszewski
Date: Mon Apr 07 2025 - 07:27:39 EST


On Mon, Apr 7, 2025 at 12:33 PM Yixun Lan <dlan@xxxxxxxxxx> wrote:
>
> Hi Linus Walleij:
>
> On 06:06 Wed 26 Mar , Yixun Lan wrote:
> > gpio irq which using three-cell scheme should always call
> > instance_match() function to find the correct irqdomain.
> >
> > The select() function will be called with !DOMAIN_BUS_ANY,
> > so for specific gpio irq driver, it need to set bus token
> > explicitly, something like:
> > irq_domain_update_bus_token(girq->domain, DOMAIN_BUS_WIRED);
> >
> > Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
> > ---
> > drivers/gpio/gpiolib-of.c | 8 ++++++++
> > drivers/gpio/gpiolib-of.h | 6 ++++++
> > drivers/gpio/gpiolib.c | 22 ++++++++++++++++++----
> > 3 files changed, 32 insertions(+), 4 deletions(-)
> >
>
> I'd assume this patch [2/2] will go via pinctrl's tree?
> as patch [1/2] has been accepted by Thomas into tip tree [1]..
> Additonally need to pull that commit first? since it's a dependency
>

No, this should go through the GPIO tree but for that I'd need an
immutable tag with patch 1/2.

Bart