mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
dmaengine: edma: Set DMA_CYCLIC capability flag
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Joel Fernandes <joelf@ti.com> Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
72c7b67aff
commit
232b223d82
@ -1574,6 +1574,7 @@ static struct edma_soc_info *edma_setup_info_from_dt(struct device *dev,
|
||||
return ERR_PTR(ret);
|
||||
|
||||
dma_cap_set(DMA_SLAVE, edma_filter_info.dma_cap);
|
||||
dma_cap_set(DMA_CYCLIC, edma_filter_info.dma_cap);
|
||||
of_dma_controller_register(dev->of_node, of_dma_simple_xlate,
|
||||
&edma_filter_info);
|
||||
|
||||
|
@ -893,6 +893,7 @@ static int edma_probe(struct platform_device *pdev)
|
||||
|
||||
dma_cap_zero(ecc->dma_slave.cap_mask);
|
||||
dma_cap_set(DMA_SLAVE, ecc->dma_slave.cap_mask);
|
||||
dma_cap_set(DMA_CYCLIC, ecc->dma_slave.cap_mask);
|
||||
|
||||
edma_dma_init(ecc, &ecc->dma_slave, &pdev->dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user