msm: charm: Wait to start monitoring GPIOS
Wait until the external modem has completely booted up
before monitoring the GPIO lines. Otherwise, there could
be noise on the lines which cause erroneous interrupts.
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
diff --git a/arch/arm/mach-msm/mdm.c b/arch/arm/mach-msm/mdm.c
index 47e88ee..7411eaa 100644
--- a/arch/arm/mach-msm/mdm.c
+++ b/arch/arm/mach-msm/mdm.c
@@ -164,6 +164,7 @@
charm_boot_status = -EIO;
else
charm_boot_status = 0;
+ charm_ready = 1;
complete(&charm_boot);
break;
case RAM_DUMP_DONE:
@@ -246,7 +247,6 @@
queue_work(charm_queue, &charm_status_work);
} else if (gpio_get_value(MDM2AP_STATUS) == 1) {
CHARM_DBG("%s: charm is now ready\n", __func__);
- charm_ready = 1;
}
return IRQ_HANDLED;
}