From 92a37b0013f6eef7076d0664cc2f6df3b7eb13a2 Mon Sep 17 00:00:00 2001 From: Iuliana Prodan Date: Wed, 9 Oct 2024 12:23:36 +0300 Subject: [PATCH] drivers: imx: sdma: Initialize channel status When probing SDMA driver initialize channel status to INIT, otherwise we have an invalid state when trying to use the channel. Signed-off-by: Iuliana Prodan --- src/drivers/imx/sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/imx/sdma.c b/src/drivers/imx/sdma.c index 92a1e2d66d5e..6ceac01de098 100644 --- a/src/drivers/imx/sdma.c +++ b/src/drivers/imx/sdma.c @@ -308,6 +308,7 @@ static int sdma_probe(struct dma *dma) dma_set_drvdata(dma, pdata); for (channel = 0; channel < dma->plat_data.channels; channel++) { + dma->chan[channel].status = COMP_STATE_INIT; dma->chan[channel].index = channel; dma->chan[channel].dma = dma; }