[PATCH 1/2] ARM: MMU: fixed dma_flush_range() call
Sascha Hauer
s.hauer at pengutronix.de
Sun Sep 20 23:11:59 PDT 2015
On Thu, Sep 17, 2015 at 12:45:10PM +0200, Enrico Scholz wrote:
> 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));
Applied both, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list