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

From: Yixun Lan
Date: Mon Apr 07 2025 - 06:33:32 EST


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

[1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=irq/core&id=0a02e1f4a54ace747304687ced3b76d159e58914

--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55