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

Commit dd7321fb authored by Nitesh Gupta's avatar Nitesh Gupta
Browse files

msm: mhi_dev: Add KPI Marker and Log for MHI Init



Add logs and Boot KPI Markers in MHI driver for MHI
Initialization. This is required for KPI consistency
and KPI calculation and getting KPI data.

Change-Id: Ie6ab9b69f4ab3fb548cc9a2f0bf74ba935a88e0c
Signed-off-by: default avatarNitesh Gupta <nitegupt@codeaurora.org>
parent cdaae388
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -28,6 +28,7 @@
#include <linux/msm_ep_pcie.h>
#include <linux/ipa_mhi.h>
#include <linux/vmalloc.h>
#include <soc/qcom/boot_stats.h>

#include "mhi.h"
#include "mhi_hwio.h"
@@ -461,6 +462,8 @@ static void mhi_hwc_cb(void *priv, enum ipa_mhi_event_type event,
		}

		mhi_update_state_info(MHI_DEV_UEVENT_CTRL, MHI_STATE_CONNECTED);
		mhi_log(MHI_MSG_CRITICAL, "Device in M0 State\n");
		place_marker("MHI - Device in M0 State\n");

		if (!mhi_ctx->mhi_int)
			ep_pcie_mask_irq_event(mhi_ctx->phandle,