Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a54ca07 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: GICv3: Check IRQ state in gic_set_affinity()"

parents 09ddd6a6 4fa55b9c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -803,6 +803,14 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,

	gic_write_irouter(val, reg);

	/*
	 * It is possible that irq is disabled from SW perspective only,
	 * because kernel takes lazy disable approach. Therefore check irq
	 * descriptor if it should kept disabled.
	 */
	if (irqd_irq_disabled(d))
		enabled = 0;

	/*
	 * If the interrupt was enabled, enabled it again. Otherwise,
	 * just wait for the distributor to have digested our changes.