msm: mdm: Ignore error interrupts from MDM during SSR
Ignore error fatal and status interrupts from the external modem
when SSR is in progress
Change-Id: I6a60aca10ccdfc68a75b3a84cde1127eb50860e8
Signed-off-by: Ameya Thakur <ameyat@codeaurora.org>
diff --git a/arch/arm/mach-msm/mdm_common.c b/arch/arm/mach-msm/mdm_common.c
index c0aed69..5b181e1 100644
--- a/arch/arm/mach-msm/mdm_common.c
+++ b/arch/arm/mach-msm/mdm_common.c
@@ -351,6 +351,7 @@
static int mdm_subsys_shutdown(const struct subsys_data *crashed_subsys)
{
+ mdm_drv->mdm_ready = 0;
gpio_direction_output(mdm_drv->ap2mdm_errfatal_gpio, 1);
if (mdm_drv->pdata->ramdump_delay_ms > 0) {
/* Wait for the external modem to complete