tg3: Dump registers when status block shows errors
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Apr 2011 11:05:05 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2011 00:10:06 +0000 (17:10 -0700)
commite64de4e6c660dae6d6370b3acb59d5d5cc9ecf20
treebbe7e74f51c2085ce0a3c9e8536a48061647d3b8
parent97bd8e491d1786f0020372a5a470bb8b3184856f
tg3: Dump registers when status block shows errors

This patch monitors the error bit of the status word within the status
block.  If it is set, the driver will dump the driver state after
validating the error and then reset the chip.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h