]> Git Repo - linux.git/commitdiff
dma: pl330: Set residue_granularity
authorLars-Peter Clausen <[email protected]>
Sat, 11 Jan 2014 13:02:17 +0000 (14:02 +0100)
committerMark Brown <[email protected]>
Tue, 14 Jan 2014 21:28:39 +0000 (21:28 +0000)
The pl330 driver currently does not support residue reporting, so set the
residue granularity to DMA_RESIDUE_GRANULARITY_DESCRIPTOR.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/dma/pl330.c

index cdf0483b8f2dfb8f746b786fd6bf84b0d5f6657b..b8a7adf7023c66d015cef691bbd77e595749bc60 100644 (file)
@@ -2887,6 +2887,7 @@ static int pl330_dma_device_slave_caps(struct dma_chan *dchan,
        caps->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
        caps->cmd_pause = false;
        caps->cmd_terminate = true;
+       caps->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
 
        return 0;
 }
This page took 0.053124 seconds and 4 git commands to generate.