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

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

Merge "msm: ipa4: Set return value if coalescing frame open"

parents 7ce4f777 84e900cd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7751,6 +7751,7 @@ int ipa3_suspend_apps_pipes(bool suspend)
		if (tx.coal_slave_open_frame != 0) {
			IPADBG("COAL frame is open 0x%x\n",
				tx.coal_slave_open_frame);
			res = -EAGAIN;
			goto undo_cons;
		}

@@ -7774,12 +7775,12 @@ int ipa3_suspend_apps_pipes(bool suspend)

	return 0;
undo_prod:
	for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
	for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
		if (IPA_CLIENT_IS_APPS_PROD(client))
			_ipa_suspend_resume_pipe(client, !suspend);
	client = IPA_CLIENT_MAX;
undo_cons:
	for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
	for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
		if (IPA_CLIENT_IS_APPS_CONS(client))
			_ipa_suspend_resume_pipe(client, !suspend);
	return res;