Skip to content

Commit 3d5d314

Browse files
groncarolonxpdbaluta
authored andcommitted
drivers: imx: edma: fix accessing register logic
channel must not be accessed when status *is* INIT Fixes: 61b0b58 Signed-off-by: Guido Roncarolo <guido.roncarolo@nxp.com>
1 parent b717e0a commit 3d5d314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/imx/edma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static int edma_remove(struct dma *dma)
442442

443443
static int edma_interrupt(struct dma_chan_data *channel, enum dma_irq_cmd cmd)
444444
{
445-
if (channel->status != COMP_STATE_INIT)
445+
if (channel->status == COMP_STATE_INIT)
446446
return 0;
447447

448448
switch (cmd) {

0 commit comments

Comments
 (0)