mirror of https://github.com/thesofproject/sof.git
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:
parent
ec8cf20575
commit
f508492d47
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue