Skip to content

Commit 8d1b7bd

Browse files
khfengvinodkoul
authored andcommitted
dmaengine: imx-sdma: Set DMA channel to be private
If async-tx is loaded before device drivers that requires imx-sdma, the dmaengine_get() routine from async-tx grabs all non-private channels, so devices that require DMA fail to work. So mark imx-sdma with DMA_PRIVATE to avoid such situation. Signed-off-by: Kai-Heng Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 255ccd8 commit 8d1b7bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/imx-sdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,7 @@ static int sdma_probe(struct platform_device *pdev)
22522252
dma_cap_set(DMA_SLAVE, sdma->dma_device.cap_mask);
22532253
dma_cap_set(DMA_CYCLIC, sdma->dma_device.cap_mask);
22542254
dma_cap_set(DMA_MEMCPY, sdma->dma_device.cap_mask);
2255+
dma_cap_set(DMA_PRIVATE, sdma->dma_device.cap_mask);
22552256

22562257
INIT_LIST_HEAD(&sdma->dma_device.channels);
22572258
/* Initialize channel parameters */

0 commit comments

Comments
 (0)