Skip to content

Commit

Permalink
drivers: imx: sdma: Initialize channel status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
iuliana-prodan authored and kv2019i committed Oct 9, 2024
1 parent ec8cf20 commit f508492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/imx/sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f508492

Please sign in to comment.