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

Commit 7eb3ff70 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Log time sync only in mission mode transition"

parents d2646935 a4821d28
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -155,9 +155,6 @@ enum MHI_PM_STATE __must_check mhi_tryset_pm_state(
	MHI_VERB("Transition to pm state from:%s to:%s\n",
		 to_mhi_pm_state_str(cur_state), to_mhi_pm_state_str(state));

	if (MHI_REG_ACCESS_VALID(cur_state) || MHI_REG_ACCESS_VALID(state))
		mhi_timesync_log(mhi_cntrl);

	mhi_cntrl->pm_state = state;
	return mhi_cntrl->pm_state;
}
@@ -513,6 +510,9 @@ static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl)
	/* setup support for time sync */
	mhi_init_timesync(mhi_cntrl);

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

	MHI_LOG("Adding new devices\n");

	/* add supported devices */