mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
757d12e584
commit
dd4e91d538
1 changed files with 2 additions and 2 deletions
|
@ -482,8 +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)) ||
|
||||
(!test_bit(DMA_CYCLIC, 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