Skip to content

Commit

Permalink
dmaengine: sprd: Fix the incorrect start for 2-stage destination chan…
Browse files Browse the repository at this point in the history
…nels

The 2-stage destination channel will be triggered by source channel
automatically, which means we should not trigger it by software request.

Signed-off-by: Eric Long <[email protected]>
Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
Eric Long authored and vinodkoul committed May 21, 2019
1 parent 58152b0 commit 3d626a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/dma/sprd-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ static void sprd_dma_start(struct sprd_dma_chn *schan)
sprd_dma_set_uid(schan);
sprd_dma_enable_chn(schan);

if (schan->dev_id == SPRD_DMA_SOFTWARE_UID)
if (schan->dev_id == SPRD_DMA_SOFTWARE_UID &&
schan->chn_mode != SPRD_DMA_DST_CHN0 &&
schan->chn_mode != SPRD_DMA_DST_CHN1)
sprd_dma_soft_request(schan);
}

Expand Down

0 comments on commit 3d626a9

Please sign in to comment.