Skip to contentSkip to conversation

ARM: ensure vm_struct has its phys_addr member filled in

PATCH New Russell King 2 participants 2 messages Sep 27, 2012 – Sep 28, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: ensure vm_struct has its phys_addr member filled in

---
 arch/arm/mm/ioremap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mm/ioremap.c +1 -0
index a8372b8..22ed380 100644
@@ -249,6 +249,7 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
  	if (!area)
  		return NULL;
  	addr = (unsigned long)area->addr;
+	area->phys_addr = __pfn_to_phys(pfn);
 
 #if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE)
 	if (DOMAIN_IO == 0 &&
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 1/1 ARM: ensure vm_struct has its phys_addr member filled in

Quoted 1 line · Russell King
Quoted 25 lines
---
 arch/arm/mm/ioremap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mm/ioremap.c +1 -0
index a8372b8..22ed380 100644
@@ -249,6 +249,7 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
  	if (!area)
  		return NULL;
  	addr = (unsigned long)area->addr;
+	area->phys_addr = __pfn_to_phys(pfn);
 
 #if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE)
 	if (DOMAIN_IO == 0 &&
Signature · 7 lines
1.7.4.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel