10000 Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/l… · bsd-unix/linux@977dcf0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 977dcf0

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fixes from Ingo Molnar: "Two MIPS-GIC irqchip driver fixes to unbreak certain MIPS boards" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqchip/mips-gic: Match IPI IRQ domain by bus token only irqchip/mips-gic: Map to VPs using HW VPNum
2 parents 18b1667 + 547aefc commit 977dcf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-mips-gic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ static int gic_shared_irq_domain_map(struct irq_domain *d, unsigned int virq,
718718

719719
spin_lock_irqsave(&gic_lock, flags);
720720
gic_map_to_pin(intr, gic_cpu_pin);
721-
gic_map_to_vpe(intr, vpe);
721+
gic_map_to_vpe(intr, mips_cm_vp_id(vpe));
722722
for (i = 0; i < min(gic_vpes, NR_CPUS); i++)
723723
clear_bit(intr, pcpu_masks[i].pcpu_mask);
724724
set_bit(intr, pcpu_masks[vpe].pcpu_mask);
@@ -959,7 +959,7 @@ int gic_ipi_domain_match(struct irq_domain *d, struct device_node *node,
959959
switch (bus_token) {
960960
case DOMAIN_BUS_IPI:
961961
is_ipi = d->bus_token == bus_token;
962-
return to_of_node(d->fwnode) == node && is_ipi;
962+
return (!node || to_of_node(d->fwnode) == node) && is_ipi;
963963
break;
964964
default:
965965
return 0;

0 commit comments

Comments
 (0)
0