msm: Bug fixes in lpm_resources and mpm
Fixed incorrect setting of the internal state of the MPM driver. In
lpm_resources, since Vdd_dig is represented via corner voltage, update
the default value to represent the same. Also, modify lpm_resources to
use the noirq RPM API during exit sleep.
Change-Id: I58365702d1eb490504e62a6f45b93fd37f474e9f
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/lpm_resources.c b/arch/arm/mach-msm/lpm_resources.c
index e5be352..ebcbd26 100644
--- a/arch/arm/mach-msm/lpm_resources.c
+++ b/arch/arm/mach-msm/lpm_resources.c
@@ -46,7 +46,7 @@
static bool msm_lpm_get_rpm_notif = true;
/*Macros*/
-#define VDD_DIG_ACTIVE (950000)
+#define VDD_DIG_ACTIVE (5)
#define VDD_MEM_ACTIVE (1050000)
#define MAX_RS_NAME (16)
#define MAX_RS_SIZE (4)
@@ -264,7 +264,7 @@
return ret;
}
- ret = msm_rpm_wait_for_ack(msg_id);
+ ret = msm_rpm_wait_for_ack_noirq(msg_id);
if (ret < 0) {
pr_err("%s: Couldn't get ACK from RPM for Msg %d Error %d",
__func__, msg_id, ret);