[TG3]: Improve ASF heartbeat.
authorMichael Chan <mchan@broadcom.com>
Wed, 27 Sep 2006 23:00:40 +0000 (16:00 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:35 +0000 (18:01 -0700)
commit130b8e4d0e4edadcecee9fdff2c32f33d77c4fe9
tree1c0f165309fa5a6b5d23fdad038ae932470d0cf9
parent3d3ebe741b2c06fe3df67739d09f6ef0e25ee41a
[TG3]: Improve ASF heartbeat.

Change to a different ASF heartbeat message code to improve
reliability.

There were some reports of unintended resets on real time kernels
where the timer may be slow and cause the heartbeat to be late.
Netpoll will also have the same problem because the timer irq will
be unavailable.

Using the new heartbeat code, the ASF firmware will also check the
ring condition before resetting the chip when the heartbeat is
expiring.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h