summaryrefslogtreecommitdiff
path: root/drivers/dma/dmaengine.c
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2016-01-22 14:06:50 +0300
committerVinod Koul <vinod.koul@intel.com>2016-02-09 06:31:41 +0300
commit6d5bbed30f89acd2ae0d23b3fff5b13b307525d9 (patch)
treee0d30a6632f33fbee36b7776778bd4442f80a965 /drivers/dma/dmaengine.c
parent271e1b86e69140fe65718ae8a264284c46d3129d (diff)
downloadlinux-6d5bbed30f89acd2ae0d23b3fff5b13b307525d9.tar.xz
dmaengine: core: expose max burst capability to clients
This patch add max_burst to dma_get_slave_caps for clients to get the burst capability of slave dma controller. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Caesar Wang <wxt@rock-chips.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r--drivers/dma/dmaengine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index c50a247be2e0..0cb259c59916 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -496,6 +496,7 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps)
caps->src_addr_widths = device->src_addr_widths;
caps->dst_addr_widths = device->dst_addr_widths;
caps->directions = device->directions;
+ caps->max_burst = device->max_burst;
caps->residue_granularity = device->residue_granularity;
caps->descriptor_reuse = device->descriptor_reuse;