Skip to content

Commit 92a37b0

Browse files
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 <[email protected]>
1 parent 95373db commit 92a37b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/imx/sdma.c

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ static int sdma_probe(struct dma *dma)
308308
dma_set_drvdata(dma, pdata);
309309

310310
for (channel = 0; channel < dma->plat_data.channels; channel++) {
311+
dma->chan[channel].status = COMP_STATE_INIT;
311312
dma->chan[channel].index = channel;
312313
dma->chan[channel].dma = dma;
313314
}

0 commit comments

Comments
 (0)