irqchip/gic-v3: Always return IRQ_SET_MASK_OK_DONE in gic_set_affinity
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Fri, 19 Feb 2016 15:22:43 +0000 (16:22 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 9 Mar 2016 09:37:37 +0000 (09:37 +0000)
Always return IRQ_SET_MASK_OK_DONE instead of IRQ_SET_MASK_OK when the
affinity has been updated. When using stacked irqchips, returning
IRQ_SET_MASK_OK_DONE means skipping all descendant irqchips.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3.c

index dd16a608a9886d0569619218897c5a5607b76ff7..5b7d3c2129d8776a3e087b9861f64161142a815a 100644 (file)
@@ -640,7 +640,7 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
        else
                gic_dist_wait_for_rwp();
 
-       return IRQ_SET_MASK_OK;
+       return IRQ_SET_MASK_OK_DONE;
 }
 #else
 #define gic_set_affinity       NULL