tg3: Add New 5719 Read DMA workaround
authorMichael Chan <mchan@broadcom.com>
Sun, 29 Jul 2012 19:15:43 +0000 (19:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:31 +0000 (23:18 -0700)
commit091f0ea30074bc43f9250961b3247af713024bc6
tree6811dce54854469457b3c5e20d150f160de0c4ba
parent10ce95d6ef36c65df7dcd3b8fcf86913f8b298bd
tg3: Add New 5719 Read DMA workaround

After Power-on-reset, the 5719's TX DMA length registers may contain
uninitialized values and cause TX DMA to stall.  Check for invalid
values and set a register bit to flush the TX channels.  The bit
needs to be turned off after the DMA channels have been flushed.

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