|
@@ -237,6 +237,13 @@ static void gic_unmask_irq(struct irq_data *d)
|
|
|
GIC_SET_INTR_MASK(d->irq - gic_irq_base);
|
|
|
}
|
|
|
|
|
|
+static void gic_ack_irq(struct irq_data *d)
|
|
|
+{
|
|
|
+ /* Clear edge detector */
|
|
|
+ if (gic_irq_flags[d->irq - gic_irq_base] & GIC_TRIG_EDGE)
|
|
|
+ GICWRITE(GIC_REG(SHARED, GIC_SH_WEDGE), d->irq - gic_irq_base);
|
|
|
+}
|
|
|
+
|
|
|
#ifdef CONFIG_SMP
|
|
|
static DEFINE_SPINLOCK(gic_lock);
|
|
|
|
|
@@ -272,11 +279,9 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
|
|
|
|
|
|
static struct irq_chip gic_irq_controller = {
|
|
|
.name = "MIPS GIC",
|
|
|
- .irq_ack = gic_irq_ack,
|
|
|
+ .irq_ack = gic_ack_irq,
|
|
|
.irq_mask = gic_mask_irq,
|
|
|
- .irq_mask_ack = gic_mask_irq,
|
|
|
.irq_unmask = gic_unmask_irq,
|
|
|
- .irq_eoi = gic_finish_irq,
|
|
|
#ifdef CONFIG_SMP
|
|
|
.irq_set_affinity = gic_set_affinity,
|
|
|
#endif
|