icnss: Remove MSA0 permission only when modem is crashed

For modem restart and device power off cases, there's no
need to remove MSA0 permission and collect ramdump as these
are normal behavior. Hence only collecting ramdump when
modem is crashed.

CRs-Fixed: 2141678
Change-Id: I42b44da3f08e62c8e375ae1749563d918e68be9d
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
Yuanyuan Liu 2017-11-15 11:23:45 -08:00
parent d33ed6b2cc
commit 935a684aa6

View file

@ -2493,7 +2493,8 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
icnss_pr_vdbg("Modem-Notify: event %lu\n", code); icnss_pr_vdbg("Modem-Notify: event %lu\n", code);
if (code == SUBSYS_AFTER_SHUTDOWN) { if (code == SUBSYS_AFTER_SHUTDOWN &&
notif->crashed == CRASH_STATUS_ERR_FATAL) {
ret = icnss_assign_msa_perm_all(priv, ret = icnss_assign_msa_perm_all(priv,
ICNSS_MSA_PERM_DUMP_COLLECT); ICNSS_MSA_PERM_DUMP_COLLECT);
if (!ret) { if (!ret) {