Skip to content

Commit 7783955

Browse files
Shawn Guogregkh
authored andcommitted
dmaengine: zx: set DMA_CYCLIC cap_mask bit
[ Upstream commit fc318d64f3d91e15babac00e08354b1beb650b57 ] The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC cap_mask bit to make that clear, and avoid unnecessary failure when clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC bit set in mask. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Jun Nie <jun.nie@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 37a48e6 commit 7783955

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/dma/zx296702_dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ static int zx_dma_probe(struct platform_device *op)
813813
INIT_LIST_HEAD(&d->slave.channels);
814814
dma_cap_set(DMA_SLAVE, d->slave.cap_mask);
815815
dma_cap_set(DMA_MEMCPY, d->slave.cap_mask);
816+
dma_cap_set(DMA_CYCLIC, d->slave.cap_mask);
816817
dma_cap_set(DMA_PRIVATE, d->slave.cap_mask);
817818
d->slave.dev = &op->dev;
818819
d->slave.device_free_chan_resources = zx_dma_free_chan_resources;

0 commit comments

Comments
 (0)