ethoc: clear only pending irqs
authorThomas Chou <thomas@wytron.com.tw>
Wed, 7 Oct 2009 14:16:43 +0000 (14:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2009 04:24:16 +0000 (21:24 -0700)
commit50c54a57dfbd392e17f1473717b8e125afcb01a3
tree97a8cde6648329e3b4877c477ea89d1c51323b71
parent16dd18b0837dee46f1a6b0c01830c5f2b7187266
ethoc: clear only pending irqs

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>
drivers/net/ethoc.c