Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff840fae authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Add debug info for icnss_modem_notifier_nb"

parents b8dec313 ef35a640
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1462,12 +1462,11 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	    notif->crashed == CRASH_STATUS_ERR_FATAL) {
		icnss_pr_info("Collecting msa0 segment dump\n");
		icnss_msa0_ramdump(priv);

		return NOTIFY_OK;
		goto out;
	}

	if (code != SUBSYS_BEFORE_SHUTDOWN)
		return NOTIFY_OK;
		goto out;

	priv->is_ssr = true;

@@ -1483,7 +1482,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
						 ICNSS_UEVENT_FW_DOWN,
						 &fw_down_data);
		}
		return NOTIFY_OK;
		goto out;
	}

	icnss_pr_info("Modem went down, state: 0x%lx, crashed: %d\n",
@@ -1500,8 +1499,10 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,

	event_data = kzalloc(sizeof(*event_data), GFP_KERNEL);

	if (event_data == NULL)
	if (event_data == NULL) {
		icnss_pr_vdbg("Exit %s, event_data is NULL\n", __func__);
		return notifier_from_errno(-ENOMEM);
	}

	event_data->crashed = notif->crashed;

@@ -1513,7 +1514,8 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	}
	icnss_driver_event_post(ICNSS_DRIVER_EVENT_PD_SERVICE_DOWN,
				ICNSS_EVENT_SYNC, event_data);

out:
	icnss_pr_vdbg("Exit %s,state: 0x%lx\n", __func__, priv->state);
	return NOTIFY_OK;
}