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: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
Bhaumik Bhatt committed 2020-04-01 14:56:04 -07:00
1 parent d2cf2b2d31
commit 279df8f09f
1 file changed
+6
+6
View File
@@ -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));