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

Commit f3076acd authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss Committed by Gerrit - the friendly Code Review server
Browse files

msm: mhi_dev: Modify sending completion command



Sending completion command after suspend or resume
to the host is redundant and not defined in the modem
host interface specification.

Change-Id: I4be43e37a8f131ce706c0d57d629d9298d16711d
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 9f5234bb
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1164,10 +1164,6 @@ int mhi_dev_suspend(struct mhi_dev *mhi)

	}

	rc = mhi_dev_send_cmd_comp_event(mhi);
	if (rc)
		pr_err("Error sending command completion event\n");

	mutex_unlock(&mhi_ctx->mhi_write_test);

	return rc;
@@ -1196,10 +1192,6 @@ int mhi_dev_resume(struct mhi_dev *mhi)
				sizeof(enum mhi_dev_ch_ctx_state));
	}

	rc = mhi_dev_send_cmd_comp_event(mhi);
	if (rc)
		pr_err("Error sending command completion event\n");

	atomic_set(&mhi->is_suspended, 0);

	return rc;