Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1267098
| From | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/4] dmaengine: omap-dma: Correct status reporting for memcpy |
| Date | 2015-11-11 11:40 +0100 |
| Message-ID | <qtAYO-1zz-11@gated-at.bofh.it> (permalink) |
| References | <qtAYN-1zz-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
During mem copy both src and dst position moves at the same pace. Check the dst position for progress reporting. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Tested-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Jyri Sarha <jsarha@ti.com> --- drivers/dma/omap-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 1dfc71c90123..8ed39ce24d46 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -719,7 +719,7 @@ static enum dma_status omap_dma_tx_status(struct dma_chan *chan, if (d->dir == DMA_MEM_TO_DEV) pos = omap_dma_get_src_pos(c); - else if (d->dir == DMA_DEV_TO_MEM) + else if (d->dir == DMA_DEV_TO_MEM || d->dir == DMA_MEM_TO_MEM) pos = omap_dma_get_dst_pos(c); else pos = 0; -- 2.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] dmaengine: omap-dma: transfer start and short memcpy improvement Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-11-11 11:40 +0100 [PATCH 4/4] dmaengine: omap-dma: Handle cases when the channel is polled for completion Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-11-11 11:40 +0100 [PATCH 2/4] dmaengine: omap-dma: Clean up the prep_slave_sg sg list walk code Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-11-11 11:40 +0100 [PATCH 1/4] dmaengine: omap-dma: Correct status reporting for memcpy Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-11-11 11:40 +0100 [PATCH 3/4] dmaengine: omap-dma: Remove tasklet to start the transfers Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-11-11 11:40 +0100
csiph-web