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

Commit ef35a640 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

icnss: Add debug info for icnss_modem_notifier_nb



Add debug prints for icnss_modem_notifier_nb enter
and exit.

Change-Id: Ia44eb22168999943dad72bded58da8bc2bb250ff
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 55100ee0
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1460,12 +1460,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;

@@ -1481,7 +1480,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",
@@ -1498,8 +1497,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;

@@ -1511,7 +1512,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;
}