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
Unified · Split
| @@ -718,7 +718,7 @@ static int gic_shared_irq_domain_map(struct irq_domain *d, unsigned int virq, · 717 unmodified lines | ||
| 718 | 718 | |
| 719 | 719 | spin_lock_irqsave(&gic_lock, flags); |
| 720 | 720 | 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)); | |
| 722 | 722 | for (i = 0; i < min(gic_vpes, NR_CPUS); i++) |
| 723 | 723 | clear_bit(intr, pcpu_masks[i].pcpu_mask); |
| 724 | 724 | 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, · 234 unmodified lines | ||
| 959 | 959 | switch (bus_token) { |
| 960 | 960 | case DOMAIN_BUS_IPI: |
| 961 | 961 | 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; | |
| 963 | 963 | break; |
| 964 | 964 | default: |
| 965 | 965 | return 0; |