Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401362 > unrolled thread

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

Started byJiada Wang <jiada_wang@mentor.com>
First post2016-05-16 10:40 +0200
Last post2016-05-16 10:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma Jiada Wang <jiada_wang@mentor.com> - 2016-05-16 10:40 +0200

#1401362 — [PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

FromJiada Wang <jiada_wang@mentor.com>
Date2016-05-16 10:40 +0200
Subject[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma
Message-ID<rzmed-4Dx-5@gated-at.bofh.it>
Previously for cyclic dma mode, once sdma fails sdma channel status will
be set to DMA_ERROR, unless the transfer is prepared again, sdmac status
will always be kept to DMA_ERROR, even the transfer for following buffers
is successful.

This patch updates sdmac status to the status of current buffer descriptor.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
---
 drivers/dma/imx-sdma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 1489de0..36f5e39 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -670,6 +670,8 @@ static void sdma_handle_channel_loop(struct sdma_channel *sdmac)
 
 		if (bd->mode.status & BD_RROR)
 			sdmac->status = DMA_ERROR;
+		else
+			sdmac->status = DMA_IN_PROGRESS;
 
 		bd->mode.status &= ~BD_RROR;
 		bd->mode.status |= BD_DONE;
-- 
2.4.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web