]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: add DMA_COMPL_SKIP_{SRC,DEST}_UNMAP flags to control dma unmap
authorDan Williams <dan.j.williams@intel.com>
Fri, 4 Jul 2008 07:13:40 +0000 (00:13 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 8 Jul 2008 18:59:12 +0000 (11:59 -0700)
commitc46de4cb6ab95b6881c08732dd5608ad93bfb315
tree1792d1faa7e344401789bbcfad8102d0d93036e2
parent9629223e9054858d44643068d1f284d171001c44
dmaengine: add DMA_COMPL_SKIP_{SRC,DEST}_UNMAP flags to control dma unmap

In some cases client code may need the dma-driver to skip the unmap of source
and/or destination buffers.  Setting these flags indicates to the driver to
skip the unmap step.  In this regard async_xor is currently broken in that it
allows the destination buffer to be unmapped while an operation is still in
progress, i.e. when the number of sources exceeds the hardware channel's
maximum (fixed in a subsequent patch).

Acked-by: Saeed Bishara <saeed@marvell.com>
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat_dma.c
drivers/dma/iop-adma.c
drivers/dma/mv_xor.c
include/linux/dmaengine.h