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

Commit 279df8f0 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: core: add timesync logs after resume completes



Time synchronization logs can be placed to read and log device
time after a resume completes.

Change-Id: I8ee2e294b0ae7640ac9f5ac29adfe3c4321ec967
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent d2cf2b2d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1411,6 +1411,9 @@ int mhi_pm_resume(struct mhi_controller *mhi_cntrl)
	 */
	mhi_special_events_pending(mhi_cntrl);

	if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state))
		mhi_timesync_log(mhi_cntrl);

	return 0;
}

@@ -1502,6 +1505,9 @@ int mhi_pm_fast_resume(struct mhi_controller *mhi_cntrl, bool notify_client)
	/* schedules worker if any special purpose events need to be handled */
	mhi_special_events_pending(mhi_cntrl);

	if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state))
		mhi_timesync_log(mhi_cntrl);

	MHI_LOG("Exit with pm_state:%s dev_state:%s\n",
		to_mhi_pm_state_str(mhi_cntrl->pm_state),
		TO_MHI_STATE_STR(mhi_cntrl->dev_state));