diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2023-02-07 07:57:45 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-02-16 16:15:48 +0300 |
commit | 8d1b7bd543833169a5f5f74c4753509ab406f381 (patch) | |
tree | 1234c7a01e1426d2e7f1a7fd18eedb389c0f5999 /drivers/dma | |
parent | 255ccd8b16a516209deb4257aa4e89e42a26413a (diff) | |
download | linux-8d1b7bd543833169a5f5f74c4753509ab406f381.tar.xz |
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 <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20230207045745.1029959-1-kai.heng.feng@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 97396af129f8..0005ab059a4f 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -2252,6 +2252,7 @@ static int sdma_probe(struct platform_device *pdev) dma_cap_set(DMA_SLAVE, sdma->dma_device.cap_mask); dma_cap_set(DMA_CYCLIC, sdma->dma_device.cap_mask); dma_cap_set(DMA_MEMCPY, sdma->dma_device.cap_mask); + dma_cap_set(DMA_PRIVATE, sdma->dma_device.cap_mask); INIT_LIST_HEAD(&sdma->dma_device.channels); /* Initialize channel parameters */ |