Re: [PATCH 01/10] OMAP: iommu: fix wrong argument in flush_cache_vmap()

2009-08-13 Thread Russell King - ARM Linux
On Wed, Aug 12, 2009 at 03:12:00PM +0300, Tony Lindgren wrote:
> From: Hiroshi DOYU 
> 
> The second argument should be the end address, not the
> length. Actually there will not be any effect on the behavior of this
> driver since flush_cache_vmap() calls flush_cache_all() in the end.

Ok.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 01/10] OMAP: iommu: fix wrong argument in flush_cache_vmap()

2009-08-12 Thread Tony Lindgren
From: Hiroshi DOYU 

The second argument should be the end address, not the
length. Actually there will not be any effect on the behavior of this
driver since flush_cache_vmap() calls flush_cache_all() in the end.

Signed-off-by: Hiroshi DOYU 
Signed-off-by: Tony Lindgren 
---
 arch/arm/plat-omap/iovmm.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 2fce2c1..6fc52fc 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -199,7 +199,7 @@ static void *vmap_sg(const struct sg_table *sgt)
va += bytes;
}
 
-   flush_cache_vmap(new->addr, total);
+   flush_cache_vmap(new->addr, new->addr + total);
return new->addr;
 
 err_out:

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html