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

Commit d7a5622f authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Handle missing cleanup in IMP_READY state on shutdown



In current implementation, the cleanup QMI / smmu unmapping are
missing if IMP is in IMP_READY state. This fix is to handle those
missing cleanup properly.

Change-Id: Ie554a264443d300bb92312932eae10d5655f7ad6
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 75d4a367
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -686,7 +686,8 @@ static void imp_mhi_shutdown(void)

	IMP_FUNC_ENTRY();

	if (imp_ctx->state == IMP_STARTED) {
	if (imp_ctx->state == IMP_STARTED ||
		imp_ctx->state == IMP_READY) {
		req.cleanup_valid = true;
		req.cleanup = true;
		ipa3_qmi_send_mhi_cleanup_request(&req);