Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1797c33f authored by Shawn Guo's avatar Shawn Guo Committed by Sascha Hauer
Browse files

dmaengine: imx-sdma: remove IMX_DMA_SG_LOOP handling in sdma_prep_slave_sg()



This is a leftover from the time that the driver did not have
sdma_prep_dma_cyclic callback and implemented sound dma as a looped
sg chain.  And it can be removed now.

Signed-off-by: default avatarShawn Guo <shawn.guo@freescale.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 1bae4ce2
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -931,12 +931,6 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(

		param = BD_DONE | BD_EXTD | BD_CONT;

		if (sdmac->flags & IMX_DMA_SG_LOOP) {
			param |= BD_INTR;
			if (i + 1 == sg_len)
				param |= BD_WRAP;
		}

		if (i + 1 == sg_len)
			param |= BD_INTR;