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 <iuliana.prodan@nxp.com>
This commit is contained in:
Iuliana Prodan 2024-10-09 12:23:36 +03:00 committed by Kai Vehmanen
parent ec8cf20575
commit f508492d47
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}