Skip to content

Commit 9ebd1bc

Browse files
RanderWangxiulipan
authored andcommitted
dw-dma: refine dw_dma_stop to clear done bit in all lli
The initialization of lli should be out of loop Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
1 parent 84e15e7 commit 9ebd1bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/drivers/intel/dw-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ static int dw_dma_stop(struct dma *dma, int channel)
508508
dw_write(dma, DW_DMA_CHAN_EN, CHAN_DISABLE(channel));
509509

510510
#if DW_USE_HW_LLI
511+
lli = p->chan[channel].lli;
511512
for (i = 0; i < p->chan[channel].desc_count; i++) {
512-
lli = p->chan[channel].lli;
513513
lli->ctrl_hi &= ~DW_CTLH_DONE(1);
514514
lli++;
515515
}

0 commit comments

Comments
 (0)