summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-16 14:29:20 +0200
committerVinod Koul <vinod.koul@intel.com>2014-07-28 13:32:33 +0200
commitb7f9bc5267d3517de8a7159219db96de7d12a37b (patch)
tree1c05c55f56f1d8d98d0607665ce84cec0e1a716c /drivers/dma
parentdmaengine: sun61: fix warning on bad print specfier (diff)
downloadlinux-b7f9bc5267d3517de8a7159219db96de7d12a37b.tar.xz
linux-b7f9bc5267d3517de8a7159219db96de7d12a37b.zip
dmaengine: edma: Update caps->residue_granularity to match with reality
The edma can report accurate DMA position so update the residue_granularity to DMA_RESIDUE_GRANULARITY_BURST. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/edma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index d08c4dedef35..8e400c0f3529 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -992,7 +992,7 @@ static int edma_dma_device_slave_caps(struct dma_chan *dchan,
caps->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
caps->cmd_pause = true;
caps->cmd_terminate = true;
- caps->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
+ caps->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
return 0;
}