dmaengine: pxa_dma: declare transfer are reusable
authorRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 13 Oct 2015 19:54:30 +0000 (21:54 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 03:02:16 +0000 (08:32 +0530)
As this driver provides a mechanism to reuse transfers, declare it in
its probe function.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pxa_dma.c

index fc4156a..f2a0310 100644 (file)
@@ -1414,6 +1414,7 @@ static int pxad_probe(struct platform_device *op)
        pdev->slave.dst_addr_widths = widths;
        pdev->slave.directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM);
        pdev->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
+       pdev->slave.descriptor_reuse = true;
 
        pdev->slave.dev = &op->dev;
        ret = pxad_init_dmadev(op, pdev, dma_channels);