hook arm_post_filter to ACK GPIO interrupts; this fixes the interrupt

storm observed on the GPS+RS485 uarts on Gateworks Cambria boards

Reviewed by:	cognet
This commit is contained in:
sam 2009-06-22 20:57:51 +00:00
parent ad949a216c
commit ff0565d717

View File

@ -186,6 +186,13 @@ ixp425_gpio_ack(int irq)
ixp425_irq2gpio_bit(irq);
}
static void
ixp425_post_filter(void *arg)
{
uintptr_t irq = (uintptr_t) arg;
ixp425_gpio_ack(irq);
}
void
arm_mask_irq(uintptr_t nb)
{
@ -304,6 +311,7 @@ ixp425_attach(device_t dev)
ixp435_set_intrmask();
ixp435_set_intrsteer();
}
arm_post_filter = ixp425_post_filter;
if (bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT,
BUS_SPACE_MAXADDR, NULL, NULL, 0xffffffff, 0xff, 0xffffffff, 0,