From 7220378f2663dcf7f72e0718a20119e811b492ff Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Thu, 12 Jan 2017 12:46:41 -0800 Subject: [PATCH] icnss: Ignore MSA0 dump collection during graceful shutdown Ignore MSA0 dump collection during graceful shutdown. Collect ramdump only when modem is really crashed. CRs-Fixed: 1110935 Change-Id: Ic2fbfec320eb516224daad9ae78be07c61376cfc Signed-off-by: Yuanyuan Liu --- drivers/soc/qcom/icnss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index 561a0d38e502..ded18adba596 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -1906,7 +1906,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb, icnss_pr_dbg("Modem-Notify: event %lu\n", code); if (code == SUBSYS_AFTER_SHUTDOWN && - notif->crashed != CRASH_STATUS_WDOG_BITE) { + notif->crashed == CRASH_STATUS_ERR_FATAL) { icnss_remove_msa_permissions(priv); icnss_pr_info("Collecting msa0 segment dump\n"); icnss_msa0_ramdump(priv);