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

Commit f3f63eb2 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Ignore force clear requests on APQ platform



On APQ platform, there is no local modem. Force clear
enabling/disabling are irrelevant due to this.
This change ignores these requests.

Change-Id: Iff810f5c1ae3495f4f3763d0d12f150a20cf59c1
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 50a8ed05
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1090,6 +1090,11 @@ int ipa3_enable_force_clear(u32 request_id, bool throttle_source,
	struct ipa_enable_force_clear_datapath_req_msg_v01 req;
	int result;

	if (ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ) {
		IPADBG("APQ platform - ignore force clear\n");
		return 0;
	}

	memset(&req, 0, sizeof(req));
	req.request_id = request_id;
	req.source_pipe_bitmask = source_pipe_bitmask;
@@ -1112,6 +1117,11 @@ int ipa3_disable_force_clear(u32 request_id)
	struct ipa_disable_force_clear_datapath_req_msg_v01 req;
	int result;

	if (ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ) {
		IPADBG("APQ platform - ignore force clear\n");
		return 0;
	}

	memset(&req, 0, sizeof(req));
	req.request_id = request_id;
	result = ipa3_qmi_disable_force_clear_datapath_send(&req);