Skip to content

Commit

Permalink
[ARM] 4589/1: ns9xxx: acknowledge IRQ_EXT2 in the demux routine for F…
Browse files Browse the repository at this point in the history
…PGA irqs

The FPGA on the a9m9750dev board interrupts the CPU via EXT2. So
to acknowledge any FPGA interrupt IRQ_EXT2 must be acknowledged.

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Uwe Kleine-König authored and Russell King committed Oct 12, 2007
1 parent ff9e76a commit ba7d850
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arch/arm/mach-ns9xxx/board-a9m9750dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,20 @@ static void a9m9750dev_fpga_demux_handler(unsigned int irq,
{
int stat = FPGA_ISR;

desc->chip->mask_ack(irq);

while (stat != 0) {
int irqno = fls(stat) - 1;
struct irq_desc *fpgadesc;

stat &= ~(1 << irqno);

desc = irq_desc + FPGA_IRQ(irqno);
fpgadesc = irq_desc + FPGA_IRQ(irqno);

desc_handle_irq(FPGA_IRQ(irqno), desc);
desc_handle_irq(FPGA_IRQ(irqno), fpgadesc);
}

desc->chip->unmask(irq);
}

void __init board_a9m9750dev_init_irq(void)
Expand Down

0 comments on commit ba7d850

Please sign in to comment.