spidernet: fix error interrupt handling
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Fri, 11 Apr 2008 03:32:30 +0000 (12:32 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 00:06:50 +0000 (20:06 -0400)
commit9a11fcb5215d6ecade9aca1f1fba272746a3882d
treeadf3d70d05fefb026557417b673a7fb0aac5b2a5
parentfcfcfa205ef59f10d80e67a1762ad27e765d4868
spidernet: fix error interrupt handling

In addition to the value of GHIINT0STS, spidernet interrupt handler
should check the values of GHIINT1STS/GHIINT2STS registers at the
beginning of spider_net_interrupt() so as not to drop error
interrupts.

GHIINT1STS/GHIINT2STS registers indicates some of erroneous conditions
in spidernet, and a few bits of GHIINT0STS register reflects these
conditions. But GHIINT0MSK masks these bits, so you should check these
conditions by reading GHIINT1STS/GHIINT2STS registers directly.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Jens Osterkamp <jens@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/spider_net.c