]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
8139too: move wmb before TX DMA start
authorAndreas Oberritter <obi@linuxtv.org>
Wed, 8 Oct 2008 06:14:16 +0000 (06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 00:12:57 +0000 (17:12 -0700)
commit176eaa589b3d242f25f24e472883fcce5f196777
tree5b6f51c49accccc5690aaeba7754cf150dd25c43
parented4cb1337b7c23b91a0f01f661c3f004fc3d3c1a
8139too: move wmb before TX DMA start

The write barrier should be used before starting a DMA transfer. This fixes
a problem, where almost all packets received on another machine had garbled
content. Tested with an RTL8100C on a MIPS machine.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/8139too.c