Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-14 Thread Hiroshi DOYU
Hi Fernando,

From: ext Fernando Guzman Lugo x0095...@ti.com
Subject: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
Date: Thu, 14 Oct 2010 04:27:36 +0200

 Omap platform is omap_iounmap function.
 
 Signed-off-by: Fernando Guzman Lugo x0095...@ti.com
 ---
  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 93a34d9..5489ca9 100644
 --- a/arch/arm/plat-omap/iovmm.c
 +++ b/arch/arm/plat-omap/iovmm.c
 @@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da)
   struct sg_table *sgt;
   typedef void (*func_t)(const void *);
  
 - sgt = unmap_vm_area(obj, da, (func_t)__iounmap,

+   sgt = unmap_vm_area(obj, da, (func_t)iounmap,

Woundn't the above be enough?

Eventually this iounmap() calls __arch_iounmap() -
omap_iounmap(). I don't see any special reason to call
omap_iounmap() here for now.


 + sgt = unmap_vm_area(obj, da, (func_t)omap_iounmap,
   IOVMF_LINEAR | IOVMF_MMIO);
   if (!sgt)
   dev_dbg(obj-dev, %s: No sgt\n, __func__);
 -- 
 1.6.3.3
 
--
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


RE: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-14 Thread Guzman Lugo, Fernando

 
 From: Hiroshi DOYU [hiroshi.d...@nokia.com]
 Sent: Thursday, October 14, 2010 1:45 AM
 To: Guzman Lugo, Fernando
 Cc: felipe.contre...@nokia.com; t...@atomide.com;
  linux-ker...@vger.kernel.org; andy.shevche...@gmail.com; 
 linux-omap@vger.kernel.org
 Subject: Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 
 Hi Fernando,
 
 From: ext Fernando Guzman Lugo x0095...@ti.com
 Subject: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 Date: Thu, 14 Oct 2010 04:27:36 +0200
 
  Omap platform is omap_iounmap function.
 
  Signed-off-by: Fernando Guzman Lugo x0095...@ti.com
  ---
   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 93a34d9..5489ca9 100644
  --- a/arch/arm/plat-omap/iovmm.c
  +++ b/arch/arm/plat-omap/iovmm.c
  @@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da)
struct sg_table *sgt;
typedef void (*func_t)(const void *);
 
  - sgt = unmap_vm_area(obj, da, (func_t)__iounmap,
 
 +   sgt = unmap_vm_area(obj, da, (func_t)iounmap,
 
 Woundn't the above be enough?
 
 Eventually this iounmap() calls __arch_iounmap() -
 omap_iounmap(). I don't see any special reason to call
 omap_iounmap() here for now.

iounmap and __arch_iounmap are macros they cannot not
be used there. If so, it gives a undeclared compile error.

Regards,
Fernando.

 
 
  + sgt = unmap_vm_area(obj, da, (func_t)omap_iounmap,
IOVMF_LINEAR | IOVMF_MMIO);
if (!sgt)
dev_dbg(obj-dev, %s: No sgt\n, __func__);
  --
  1.6.3.3
 
--
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


Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-14 Thread Hiroshi DOYU
From: ext Guzman Lugo, Fernando fernando.l...@ti.com
Subject: RE: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
Date: Thu, 14 Oct 2010 10:18:30 +0200

 
 
 From: Hiroshi DOYU [hiroshi.d...@nokia.com]
 Sent: Thursday, October 14, 2010 1:45 AM
 To: Guzman Lugo, Fernando
 Cc: felipe.contre...@nokia.com; t...@atomide.com;
  linux-ker...@vger.kernel.org; andy.shevche...@gmail.com; 
 linux-omap@vger.kernel.org
 Subject: Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 
 Hi Fernando,
 
 From: ext Fernando Guzman Lugo x0095...@ti.com
 Subject: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 Date: Thu, 14 Oct 2010 04:27:36 +0200
 
  Omap platform is omap_iounmap function.
 
  Signed-off-by: Fernando Guzman Lugo x0095...@ti.com
  ---
   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 93a34d9..5489ca9 100644
  --- a/arch/arm/plat-omap/iovmm.c
  +++ b/arch/arm/plat-omap/iovmm.c
  @@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da)
struct sg_table *sgt;
typedef void (*func_t)(const void *);
 
  - sgt = unmap_vm_area(obj, da, (func_t)__iounmap,
 
 +   sgt = unmap_vm_area(obj, da, (func_t)iounmap,
 
 Woundn't the above be enough?
 
 Eventually this iounmap() calls __arch_iounmap() -
 omap_iounmap(). I don't see any special reason to call
 omap_iounmap() here for now.
 
 iounmap and __arch_iounmap are macros they cannot not
 be used there. If so, it gives a undeclared compile error.

Ok. I'll add this explanation as a note on this commit.
--
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


RE: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-14 Thread Guzman Lugo, Fernando
 

 -Original Message-
 From: Hiroshi DOYU [mailto:hiroshi.d...@nokia.com] 
 Sent: Thursday, October 14, 2010 4:47 AM
 To: Guzman Lugo, Fernando
 Cc: felipe.contre...@nokia.com; t...@atomide.com; 
 linux-ker...@vger.kernel.org; andy.shevche...@gmail.com; 
 linux-omap@vger.kernel.org
 Subject: Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 
 From: ext Guzman Lugo, Fernando fernando.l...@ti.com
 Subject: RE: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
 Date: Thu, 14 Oct 2010 10:18:30 +0200
 
  
  
  From: Hiroshi DOYU [hiroshi.d...@nokia.com]
  Sent: Thursday, October 14, 2010 1:45 AM
  To: Guzman Lugo, Fernando
  Cc: felipe.contre...@nokia.com; t...@atomide.com;  
  linux-ker...@vger.kernel.org; andy.shevche...@gmail.com; 
  linux-omap@vger.kernel.org
  Subject: Re: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
  
  Hi Fernando,
  
  From: ext Fernando Guzman Lugo x0095...@ti.com
  Subject: [PATCH 3/4] iovmm: replace __iounmap with omap_iounmap
  Date: Thu, 14 Oct 2010 04:27:36 +0200
  
   Omap platform is omap_iounmap function.
  
   Signed-off-by: Fernando Guzman Lugo x0095...@ti.com
   ---
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 93a34d9..5489ca9 100644
   --- a/arch/arm/plat-omap/iovmm.c
   +++ b/arch/arm/plat-omap/iovmm.c
   @@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da)
 struct sg_table *sgt;
 typedef void (*func_t)(const void *);
  
   - sgt = unmap_vm_area(obj, da, (func_t)__iounmap,
  
  +   sgt = unmap_vm_area(obj, da, (func_t)iounmap,
  
  Woundn't the above be enough?
  
  Eventually this iounmap() calls __arch_iounmap() - 
  omap_iounmap(). I don't see any special reason to call 
  omap_iounmap() here for now.
  
  iounmap and __arch_iounmap are macros they cannot not be 
 used there. 
  If so, it gives a undeclared compile error.
 
 Ok. I'll add this explanation as a note on this commit.
 

Sure, Thanks.

Regards,
Fernando.

--
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 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-13 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function.

Signed-off-by: Fernando Guzman Lugo x0095...@ti.com
---
 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 93a34d9..5489ca9 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da)
struct sg_table *sgt;
typedef void (*func_t)(const void *);
 
-   sgt = unmap_vm_area(obj, da, (func_t)__iounmap,
+   sgt = unmap_vm_area(obj, da, (func_t)omap_iounmap,
IOVMF_LINEAR | IOVMF_MMIO);
if (!sgt)
dev_dbg(obj-dev, %s: No sgt\n, __func__);
-- 
1.6.3.3

--
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