]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dma: mmp_pdma: set DMA_PRIVATE
authorDaniel Mack <zonque@gmail.com>
Wed, 21 Aug 2013 12:08:58 +0000 (14:08 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 25 Aug 2013 16:34:53 +0000 (22:04 +0530)
As the driver now has its own xlate function and makes use of the
dma_get_slave_channel(), we need to manually set the DMA_PRIVATE flags.

Drivers which rely on of_dma_simple_xlate() do implicitly the same by
going through __dma_request_channel().

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c

index f0e6d7d49b065e79ae79c099c0adc727b3ae4b39..ff8d7827f8cbe80e2c66d78db1f50ad6fdd91b5a 100644 (file)
@@ -985,6 +985,7 @@ static int mmp_pdma_probe(struct platform_device *op)
        dma_cap_set(DMA_SLAVE, pdev->device.cap_mask);
        dma_cap_set(DMA_MEMCPY, pdev->device.cap_mask);
        dma_cap_set(DMA_CYCLIC, pdev->device.cap_mask);
+       dma_cap_set(DMA_PRIVATE, pdev->device.cap_mask);
        pdev->device.dev = &op->dev;
        pdev->device.device_alloc_chan_resources = mmp_pdma_alloc_chan_resources;
        pdev->device.device_free_chan_resources = mmp_pdma_free_chan_resources;