e100: fix dma error in direction for mapping
authorJesse Brandeburg <[email protected]>
Fri, 14 Nov 2008 13:51:54 +0000 (13:51 +0000)
committerDavid S. Miller <[email protected]>
Sun, 16 Nov 2008 09:45:24 +0000 (01:45 -0800)
commit773c9c1f77174429ad2feb1735a3beb33ff3b6c0
treeb7195ca5a9e1d58546ef3d744618fa408ae6810f
parentac450208dea8cf1b9aa8feabd06a7209a282d749
e100: fix dma error in direction for mapping

The e100 driver triggers BUG_ON(buf->direction != dir)
by doing pci_map_single(..., PCI_DMA_BIDIRECTIONAL)
and pci_dma_sync_single_for_device(..., PCI_DMA_TODEVICE).

Changing the DMA direction, especially with dmabounce will result
in unexpected behaviour.

Reported-by: Anders Grafstrom <[email protected]>
Signed-off-by: Jesse Brandeburg <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/e100.c