]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dmaengine: add DMA_TRANS_NONE to dma_transfer_direction
authorShawn Guo <shawn.guo@linaro.org>
Tue, 13 Dec 2011 15:48:03 +0000 (23:48 +0800)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 23 Dec 2011 16:03:15 +0000 (21:33 +0530)
Before dma_transfer_direction was introduced to replace
dma_data_direction, some dmaengine device uses DMA_NONE of
dma_data_direction for some talk with its client drivers.
The mxs-dma and its clients mxs-mmc and gpmi-nand are such case.

This patch adds DMA_TRANS_NONE to dma_transfer_direction and
migrate the DMA_NONE use in mxs-dma to it.

It also fixes the compile warning below.

CC      drivers/dma/mxs-dma.o
drivers/dma/mxs-dma.c: In function ‘mxs_dma_prep_slave_sg’:
drivers/dma/mxs-dma.c:420:16: warning: comparison between ‘enum dma_transfer_direction’ and ‘enum dma_data_direction’

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/mxs-dma.c
include/linux/dmaengine.h

index 6548595c26dcfafc4aeb66c2c0b1c395e0cc08a9..493af2f6e33a44ac9e5153050cae7848cfab1181 100644 (file)
@@ -391,7 +391,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_slave_sg(
                idx = 0;
        }
 
-       if (direction == DMA_NONE) {
+       if (direction == DMA_TRANS_NONE) {
                ccw = &mxs_chan->ccw[idx++];
                pio = (u32 *) sgl;
 
index 5532bb8b500cd9b7dfec304fe077122b57700512..679b349d9b66695f65bb3597b2a530e3e9709600 100644 (file)
@@ -88,6 +88,7 @@ enum dma_transfer_direction {
        DMA_MEM_TO_DEV,
        DMA_DEV_TO_MEM,
        DMA_DEV_TO_DEV,
+       DMA_TRANS_NONE,
 };
 
 /**