You need to sign in or sign up before continuing.
提交 dd4e91d5 编写于 作者: A Andy Shevchenko 提交者: Vinod Koul

dmaengine: slave means at least one of DMA_SLAVE, DMA_CYCLIC

When check for capabilities recognize slave support by either DMA_SLAVE or
DMA_CYCLIC bit set. If we don't do that the user can't get a normally worked
DMA support for engines that doesn't have one of the mentioned bits set.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 757d12e5
...@@ -482,8 +482,8 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps) ...@@ -482,8 +482,8 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps)
device = chan->device; device = chan->device;
/* check if the channel supports slave transactions */ /* 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))) test_bit(DMA_CYCLIC, device->cap_mask.bits)))
return -ENXIO; return -ENXIO;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册