]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
e100: fix dma error in direction for mapping
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 14 Nov 2008 13:51:54 +0000 (13:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <grfstrm@users.sourceforge.net>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e100.c