]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Add New 5719 Read DMA workaround
authorMichael Chan <mchan@broadcom.com>
Sun, 29 Jul 2012 19:15:43 +0000 (19:15 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:09 +0000 (15:23 +0800)
commitd808d0967b025821617e3d3de0afe6e8f683aa4b
tree0b0ec22afd7b15bb616f969c73942193362da2ff
parentf2bb070e4eb20381605423a3d5b000ba4409be36
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.

(cherry picked from commit 091f0ea30074bc43f9250961b3247af713024bc6)
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h