Thread (13 messages) 13 messages, 4 authors, 2025-03-25

Re: [PATCH v7 0/4] riscv: spacemit: add gpio support for K1 SoC

From: Thomas Gleixner <hidden>
Date: 2025-02-26 15:45:09
Also in: linux-gpio, linux-riscv, lkml, spacemit

On Wed, Feb 26 2025 at 13:56, Yixun Lan wrote:
quoted hunk ↗ jump to hunk
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....

Thanks,

        tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help