[PATCH v7 0/4] riscv: spacemit: add gpio support for K1 SoC
Yixun Lan
dlan at gentoo.org
Wed Feb 26 18:12:31 PST 2025
Hi Thomas Gleixner:
On 16:45 Wed 26 Feb , Thomas Gleixner wrote:
> On Wed, Feb 26 2025 at 13:56, Yixun Lan wrote:
> > sounds we need to implement .select() or .match() in irq_domain_ops,
> > then find the irq_domain.. here is a prototype version
> > diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
> > index 995e5e0ec2db..c4d18267e86e 100644
> > --- a/kernel/irq/irqdomain.c
> > +++ b/kernel/irq/irqdomain.c
> > @@ -553,7 +553,7 @@ struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec,
> > */
> > mutex_lock(&irq_domain_mutex);
> > list_for_each_entry(h, &irq_domain_list, link) {
> > - if (h->ops->select && bus_token != DOMAIN_BUS_ANY)
> > + if (h->ops->select /* && bus_token != DOMAIN_BUS_ANY */)
>
> This breaks existing usage and reintroduces the regression, which was
> fixed with the commit which added the bus token check....
>
right, I shouldn't change it.
would setting a bus token explicitly for spacemit gpio be a good idea?
in drivers/gpio/gpio-spacemit-k1.c, something like:
irq_domain_update_bus_token(girq->domain, DOMAIN_BUS_WIRED);
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
More information about the linux-riscv
mailing list