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

Commit 6ec3edf0 authored by Mohammed Siddiq's avatar Mohammed Siddiq Committed by Gerrit - the friendly Code Review server
Browse files

icnss2: Add debug info for icnss_modem_notifier_nb



Add debug prints for icnss_modem_notifier_nb enter
and exit.

Change-Id: I30ea17b32251b24b65509020e90c9f9d00265aed
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent a3be09f2
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1487,11 +1487,11 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	if (code == SUBSYS_AFTER_SHUTDOWN) {
		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;

@@ -1507,7 +1507,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",
@@ -1524,8 +1524,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;

@@ -1538,7 +1540,8 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	}
	icnss_driver_event_post(priv, 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;
}