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

Commit 419fb8ef authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: add a dummy function to IPAHAL immediate commands



Immediate commands might become obsolete with new IPA HW versions.
Add a dummy function with a warning in case any upper layer tries
to send an obsolete immediate command.

Change-Id: I5931112412480daf03457c89a7d43eb0aa644187
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent e08dfa6b
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -595,6 +595,15 @@ static struct ipahal_imm_cmd_pyld *ipa_imm_cmd_construct_ip_v4_filter_init(
	return pyld;
}

static struct ipahal_imm_cmd_pyld *ipa_imm_cmd_construct_dummy(
	enum ipahal_imm_cmd_name cmd, const void *params, bool is_atomic_ctx)
{
	IPAHAL_ERR("no construct function for IMM_CMD=%s, IPA ver %d\n",
		ipahal_imm_cmd_name_str(cmd), ipahal_ctx->hw_type);
	WARN_ON(1);
	return NULL;
}

/*
 * struct ipahal_imm_cmd_obj - immediate command H/W information for
 *  specific IPA version
@@ -668,7 +677,7 @@ static struct ipahal_imm_cmd_obj
		12},
	/* NAT_DMA was renamed to TABLE_DMA for IPAv4 */
	[IPA_HW_v4_0][IPA_IMM_CMD_NAT_DMA] = {
		NULL,
		ipa_imm_cmd_construct_dummy,
		-1},
	[IPA_HW_v4_0][IPA_IMM_CMD_TABLE_DMA] = {
		ipa_imm_cmd_construct_table_dma_ipav4,