bcm63xx: periph_intc: report effective affinity

The bcm6345-periph-intc driver only targets a single CPU at a time, even
if the notional affinity is wider. Let's inform the core code about this.

This patch gets rid of the kernel message:
"genirq: irq_chip bcm6345-periph-intc did not update eff. affinity mask
of irq 52"

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
This commit is contained in:
Daniel Gonzalez Cabanelas 2020-05-14 18:10:12 +02:00 committed by Álvaro Fernández Rojas
parent 29c3bb5f41
commit e04ff3c7cc

View File

@ -0,0 +1,20 @@
--- a/drivers/irqchip/irq-bcm6345-periph.c
+++ b/drivers/irqchip/irq-bcm6345-periph.c
@@ -186,6 +186,8 @@ static int bcm6345_periph_set_affinity(s
}
raw_spin_unlock_irqrestore(&priv->lock, flags);
+ irq_data_update_effective_affinity(data, cpumask_of(cpu));
+
return 0;
}
#endif
@@ -197,6 +199,8 @@ static int bcm6345_periph_map(struct irq
irq_set_chip_and_handler(irq, &priv->chip, handle_level_irq);
+ irqd_set_single_target(irq_desc_get_irq_data(irq_to_desc(irq)));
+
return 0;
}