[PATCH 1/2] ARM: MMU: fixed dma_flush_range() call
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Thu Sep 17 03:45:10 PDT 2015
dma_flush_range() expects an address as second argument, not a size.
Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
arch/arm/cpu/mmu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index 37bfa05..8ceb450 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -246,7 +246,8 @@ static int arm_mmu_remap_sdram(struct memory_bank *bank)
}
dma_flush_range((unsigned long)ttb, (unsigned long)ttb + 0x4000);
- dma_flush_range((unsigned long)ptes, num_ptes * sizeof(u32));
+ dma_flush_range((unsigned long)ptes,
+ (unsigned long)ptes + num_ptes * sizeof(u32));
tlb_invalidate();
--
2.4.3
More information about the barebox
mailing list