diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2016-12-15 22:03:36 +0800 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-01-02 10:53:48 +0530 |
commit | fc318d64f3d91e15babac00e08354b1beb650b57 (patch) | |
tree | dc3445eb38b6f3e83e8765a498b6b4d6a204cc6b /drivers/dma/zx_dma.c | |
parent | 253f9f4412e0113fd83471e9a3b1aa9f85ce87c3 (diff) | |
download | linux-fc318d64f3d91e15babac00e08354b1beb650b57.tar.gz linux-fc318d64f3d91e15babac00e08354b1beb650b57.tar.bz2 linux-fc318d64f3d91e15babac00e08354b1beb650b57.zip |
dmaengine: zx: set DMA_CYCLIC cap_mask bit
The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC
cap_mask bit to make that clear, and avoid unnecessary failure when
clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC
bit set in mask.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/zx_dma.c')
-rw-r--r-- | drivers/dma/zx_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/zx_dma.c b/drivers/dma/zx_dma.c index 380276d078b2..33155c6816cc 100644 --- a/drivers/dma/zx_dma.c +++ b/drivers/dma/zx_dma.c @@ -812,6 +812,7 @@ static int zx_dma_probe(struct platform_device *op) INIT_LIST_HEAD(&d->slave.channels); dma_cap_set(DMA_SLAVE, d->slave.cap_mask); dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); + dma_cap_set(DMA_CYCLIC, d->slave.cap_mask); dma_cap_set(DMA_PRIVATE, d->slave.cap_mask); d->slave.dev = &op->dev; d->slave.device_free_chan_resources = zx_dma_free_chan_resources; |