1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-02 19:36:22 +01:00

dma: Transfer dma_ops should use DMA address types

DMA operations should function on DMA addresses, not virtual addresses.
Although these are usually the same in U-Boot, it is more correct
to be explicit with our types here.

Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
Andrew Davis
2022-10-07 12:11:13 -05:00
committed by Tom Rini
parent b839265046
commit b9add6413d
5 changed files with 14 additions and 14 deletions

View File

@@ -252,7 +252,7 @@ int dma_memcpy(void *dst, void *src, size_t len)
destination = dma_map_single(dst, len, DMA_FROM_DEVICE);
source = dma_map_single(src, len, DMA_TO_DEVICE);
ret = ops->transfer(dev, DMA_MEM_TO_MEM, dst, src, len);
ret = ops->transfer(dev, DMA_MEM_TO_MEM, destination, source, len);
/* Clean+Invalidate the areas after, so we can see DMA'd data */
dma_unmap_single(destination, len, DMA_FROM_DEVICE);