]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3895231c3d39323c7527dd224044ea7b47250f7b
treebbe7e74f51c2085ce0a3c9e8536a48061647d3b8
parentfbf98e2827ed5dfbaa8d49627236d1aa355a05df
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