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>
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;
/*