mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
dmaengine: add DMA_CYCLIC to dma_get_slave_caps
dma_get_slave_caps() API only checked for slave capability where we use slave capabilities for cyclic dma operations as well, so we should add the cyclic case here too. Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
f55532a0c0
commit
b2d8984f3e
1 changed files with 2 additions and 1 deletions
|
@ -482,7 +482,8 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps)
|
|||
device = chan->device;
|
||||
|
||||
/* check if the channel supports slave transactions */
|
||||
if (!test_bit(DMA_SLAVE, device->cap_mask.bits))
|
||||
if ((!test_bit(DMA_SLAVE, device->cap_mask.bits)) ||
|
||||
(!test_bit(DMA_CYCLIC, device->cap_mask.bits)))
|
||||
return -ENXIO;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue