diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-04-05 15:31:33 -0700 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-04-05 15:31:33 -0700 |
commit | b2d8984f3e7c84303e4d1cbd40d9e8cefd3c9737 (patch) | |
tree | 3c928d7f71240597e1a553deabea19a6ccdfd5fa /drivers/dma/dmaengine.c | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) | |
download | op-kernel-dev-b2d8984f3e7c84303e4d1cbd40d9e8cefd3c9737.zip op-kernel-dev-b2d8984f3e7c84303e4d1cbd40d9e8cefd3c9737.tar.gz |
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>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 0cb259c5..3e55755 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -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; /* |