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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user