mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
dmaengine: omap-dma: Correct status reporting for memcpy
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> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
8005c49d9a
commit
adf850bcca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user