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

Commit 3bfb7e8f authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: cntrl: qcom: reset suspend state to active in suspend error cases



Make sure MHI suspend state correctly reflect when returning from
run time and system suspend.

CRs-Fixed: 2451030
Change-Id: Iaf48d5f9f5e18c7de0b0bb9be04a22b8bcc7ac63
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent d130e1b9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ static int mhi_runtime_suspend(struct device *dev)

	if (ret) {
		MHI_LOG("Abort due to ret:%d\n", ret);
		mhi_dev->suspend_mode = MHI_ACTIVE_STATE;
		goto exit_runtime_suspend;
	}

@@ -364,6 +365,7 @@ int mhi_system_suspend(struct device *dev)

	if (ret) {
		MHI_LOG("Abort due to ret:%d\n", ret);
		mhi_dev->suspend_mode = MHI_ACTIVE_STATE;
		goto exit_system_suspend;
	}