tools: mkimage: provide dtc path during build
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 130-irqchip-armada-xp-backport.patch
1 Backport a change that updates the effective affinity mask. The Armada IRQ
2 controller only supports setting the affinity to a single CPU, and the IRQ
3 subsystem needs to know about that.
4
5 Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 ---
7 --- a/drivers/irqchip/irq-armada-370-xp.c
8 +++ b/drivers/irqchip/irq-armada-370-xp.c
9 @@ -251,6 +251,8 @@ static int armada_xp_set_affinity(struct
10 writel(reg, main_int_base + ARMADA_370_XP_INT_SOURCE_CTL(hwirq));
11 raw_spin_unlock(&irq_controller_lock);
12
13 + cpumask_copy(irq_data_get_affinity_mask(d), cpumask_of(cpu));
14 +
15 return IRQ_SET_MASK_OK;
16 }
17 #endif