tg3: Provide full regdump on tx timeout
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Apr 2011 11:05:04 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2011 00:10:05 +0000 (17:10 -0700)
commit97bd8e491d1786f0020372a5a470bb8b3184856f
treea6c09f541895883107fa9dce458c8aa614c37736
parent4d42d417be75d750b82798922b6e775915e11bce
tg3: Provide full regdump on tx timeout

The current amount of information provided in the output of a tx timeout
is insufficient to determine a root cause.  This patch replaces the
terse, four-register status output with a more complete body of
information.  For PCIe devices, the full register space is dumped.  For
other devices, select registers are dumped instead.

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