Skip to content

Commit 957978a

Browse files
Thomas Bogendoerfergregkh
Thomas Bogendoerfer
authored andcommitted
MIPS: PCI: remember nasid changed by set interrupt affinity
commit 37640ad upstream. When changing interrupt affinity remember the possible changed nasid, otherwise an interrupt deactivate/activate sequence will incorrectly setup interrupt. Fixes: e6308b6 ("MIPS: SGI-IP27: abstract chipset irq from bridge") Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2264fca commit 957978a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/mips/pci/pci-xtalk-bridge.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,15 @@ static int bridge_set_affinity(struct irq_data *d, const struct cpumask *mask,
279279
struct bridge_irq_chip_data *data = d->chip_data;
280280
int bit = d->parent_data->hwirq;
281281
int pin = d->hwirq;
282-
nasid_t nasid;
283282
int ret, cpu;
284283

285284
ret = irq_chip_set_affinity_parent(d, mask, force);
286285
if (ret >= 0) {
287286
cpu = cpumask_first_and(mask, cpu_online_mask);
288-
nasid = COMPACT_TO_NASID_NODEID(cpu_to_node(cpu));
287+
data->nnasid = COMPACT_TO_NASID_NODEID(cpu_to_node(cpu));
289288
bridge_write(data->bc, b_int_addr[pin].addr,
290289
(((data->bc->intr_addr >> 30) & 0x30000) |
291-
bit | (nasid << 8)));
290+
bit | (data->nasid << 8)));
292291
bridge_read(data->bc, b_wid_tflush);
293292
}
294293
return ret;

0 commit comments

Comments
 (0)