msm: pm2: Avoid calling "ioremap_nocache" in atomic context for 8x25
Callling "ioremap_nocache" in atomic context might sleep, and kernel
prints a big stack trace every time when the system coming out of PC.
Do an "ioremap_nocache" at the time of dirver initialization.
Change-Id: I46651ddb0650ca8dd6db5c8e9eba8afc1e2d4ca9
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm2.c b/arch/arm/mach-msm/pm2.c
index f4bfe23..ee78a31 100644
--- a/arch/arm/mach-msm/pm2.c
+++ b/arch/arm/mach-msm/pm2.c
@@ -65,7 +65,7 @@
#include "spm.h"
#include "sirc.h"
#include "pm-boot.h"
-#define MSM_CORE1_RESET 0xA8600590
+#include "devices-msm7x2xa.h"
/******************************************************************************
* Debug Definitions
@@ -490,7 +490,7 @@
void __iomem *base_ptr;
unsigned int value = 0;
- base_ptr = ioremap_nocache(MSM_CORE1_RESET, SZ_4);
+ base_ptr = core1_reset_base();
if (!base_ptr)
return;
@@ -545,7 +545,6 @@
mb();
__raw_writel(0x0, base_ptr);
mb();
- iounmap(base_ptr);
}
/*