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>
This commit is contained in:
Rander Wang 2018-09-03 15:21:03 +08:00 committed by Pan Xiuli
parent 84e15e721a
commit 9ebd1bce88
1 changed files with 1 additions and 1 deletions

View File

@ -508,8 +508,8 @@ static int dw_dma_stop(struct dma *dma, int channel)
dw_write(dma, DW_DMA_CHAN_EN, CHAN_DISABLE(channel));
#if DW_USE_HW_LLI
lli = p->chan[channel].lli;
for (i = 0; i < p->chan[channel].desc_count; i++) {
lli = p->chan[channel].lli;
lli->ctrl_hi &= ~DW_CTLH_DONE(1);
lli++;
}