Skip to content

Commit

Permalink
ethoc: clear only pending irqs
Browse files Browse the repository at this point in the history
This patch fixed the problem of dropped packets due to lost of
interrupt requests. We should only clear what was pending at the
moment we read the irq source reg.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
hippo5329 authored and davem330 committed Oct 19, 2009
1 parent 16dd18b commit 50c54a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static irqreturn_t ethoc_interrupt(int irq, void *dev_id)
return IRQ_NONE;
}

ethoc_ack_irq(priv, INT_MASK_ALL);
ethoc_ack_irq(priv, pending);

if (pending & INT_MASK_BUSY) {
dev_err(&dev->dev, "packet dropped\n");
Expand Down

0 comments on commit 50c54a5

Please sign in to comment.