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

Commit 8c33d4e5 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Gerrit - the friendly Code Review server
Browse files

mhi: cntrl: qcom: enhance logging for forced suspend



Enhance logs for forced suspend/resume cycle after mission
mode entry.

Change-Id: I731f858441c935c17226e3f73a4fd176b0daca0a
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 440b0124
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -417,15 +417,15 @@ static int mhi_force_suspend(struct mhi_controller *mhi_cntrl)
		msleep(delayms);
	}

	if (ret)
	if (ret) {
		MHI_ERR("Force suspend ret with %d\n", ret);
		goto exit_force_suspend;
	}

	mhi_dev->suspend_mode = MHI_DEFAULT_SUSPEND;
	ret = mhi_arch_link_suspend(mhi_cntrl);

exit_force_suspend:
	MHI_LOG("Force suspend ret with %d\n", ret);

	mutex_unlock(&mhi_cntrl->pm_mutex);

	return ret;
@@ -633,8 +633,10 @@ static void mhi_status_cb(struct mhi_controller *mhi_cntrl,
		 */
		pm_runtime_get(dev);
		ret = mhi_force_suspend(mhi_cntrl);
		if (!ret)
		if (!ret) {
			MHI_LOG("Attempt resume after forced suspend\n");
			mhi_runtime_resume(dev);
		}
		pm_runtime_put(dev);
		mhi_arch_mission_mode_enter(mhi_cntrl);
		break;