diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-10-13 21:54:29 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-11-16 04:02:16 +0100 |
commit | 9eeacd3a2f17438d9d286ff2f78c4709a4148be7 (patch) | |
tree | d602de8c0011d281ebaa138a6eecfc88f1e6d1d7 /drivers/dma/dmaengine.c | |
parent | dmaengine: virt-dma: don't always free descriptor upon completion (diff) | |
download | linux-9eeacd3a2f17438d9d286ff2f78c4709a4148be7.tar.xz linux-9eeacd3a2f17438d9d286ff2f78c4709a4148be7.zip |
dmaengine: enable DMA_CTRL_REUSE
In the current state, the capability of transfer reuse can neither be
set by a slave dmaengine driver, nor used by a client driver, because
the capability is not available to dma_get_slave_caps().
Fix this by adding a way to declare the capability.
Fixes: 272420214d26 ("dmaengine: Add DMA_CTRL_REUSE")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 3ecec1445adf..4aced6689734 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -493,6 +493,7 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps) caps->dst_addr_widths = device->dst_addr_widths; caps->directions = device->directions; caps->residue_granularity = device->residue_granularity; + caps->descriptor_reuse = device->descriptor_reuse; /* * Some devices implement only pause (e.g. to get residuum) but no |