提交 b2d8984f 编写于 作者: V Vinod Koul

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: NVinod Koul <vinod.koul@intel.com>
上级 f55532a0
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册