mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	genirq/irqdomain: Remove the param count restriction from select()
Now that the GIC-v3 callback can handle invocation with a fwspec parameter count of 0 lift the restriction in the core code and invoke select() unconditionally when the domain provides it. Preparatory change for per device MSI domains. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240127161753.114685-3-apatel@ventanamicro.com
This commit is contained in:
		
							parent
							
								
									1513782510
								
							
						
					
					
						commit
						de1ff306dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -448,7 +448,7 @@ struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec,
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	mutex_lock(&irq_domain_mutex);
 | 
						mutex_lock(&irq_domain_mutex);
 | 
				
			||||||
	list_for_each_entry(h, &irq_domain_list, link) {
 | 
						list_for_each_entry(h, &irq_domain_list, link) {
 | 
				
			||||||
		if (h->ops->select && fwspec->param_count)
 | 
							if (h->ops->select)
 | 
				
			||||||
			rc = h->ops->select(h, fwspec, bus_token);
 | 
								rc = h->ops->select(h, fwspec, bus_token);
 | 
				
			||||||
		else if (h->ops->match)
 | 
							else if (h->ops->match)
 | 
				
			||||||
			rc = h->ops->match(h, to_of_node(fwnode), bus_token);
 | 
								rc = h->ops->match(h, to_of_node(fwnode), bus_token);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue