dmaengine: imx-sdma: Set DMA channel to be private
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 7 Feb 2023 04:57:45 +0000 (12:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 16 Feb 2023 13:15:48 +0000 (18:45 +0530)
commit8d1b7bd543833169a5f5f74c4753509ab406f381
tree1234c7a01e1426d2e7f1a7fd18eedb389c0f5999
parent255ccd8b16a516209deb4257aa4e89e42a26413a
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>
drivers/dma/imx-sdma.c