Skip to contentSkip to conversation

dma: axi-dmac: report DMA_INTERLEAVE capability

PATCH New Vinod Koul 1 participant 1 message Feb 25, 2019 dmaengine

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 2/2 dma: axi-dmac: report DMA_INTERLEAVE capability

Quoted 4 lines · Alexandru Ardelean

From: Dragos Bogdan <[email protected]>

Fixes commit 0e3b67b348b8 ("dmaengine: Add support for the Analog Devices AXI-DMAC DMA controller")

Am not sire this is appropriate here..

Quoted 26 lines

The device_prep_interleaved_dma() callback is already present since the driver was submitted initially.
This change adds the DMA_INTERLEAVE capability to the capability mask of the DMA engine.

---
 drivers/dma/dma-axi-dmac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/dma-axi-dmac.c +1 -0
index 2c999113b989..b2039e60ae04 100644
@@ -652,6 +652,7 @@ static int axi_dmac_probe(struct platform_device *pdev)
 	dma_dev = &dmac->dma_dev;
 	dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);
 	dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask);
+	dma_cap_set(DMA_INTERLEAVE, dma_dev->cap_mask);
 	dma_dev->device_free_chan_resources = axi_dmac_free_chan_resources;
 	dma_dev->device_tx_status = dma_cookie_status;
 	dma_dev->device_issue_pending = axi_dmac_issue_pending;
Signature · 1 line
2.17.1