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

Commit 1e7711f9 authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Update smmu enabled condition



Going forward WDI over GSI will be supported.
Where SMMU context bank of wlan will be mapped
to AP context bank.
Update the condition of smmu enabled flag
accordingly.

Change-Id: I26e9c56e6c651c08bb1ecf40281e392654b0b52e
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 364475ab
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -6948,7 +6948,13 @@ int ipa3_get_smmu_params(struct ipa_smmu_in_params *in,


	switch (in->smmu_client) {
	switch (in->smmu_client) {
	case IPA_SMMU_WLAN_CLIENT:
	case IPA_SMMU_WLAN_CLIENT:
		is_smmu_enable = !(ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_UC] |
		if (ipa3_ctx->ipa_wdi3_over_gsi)
			is_smmu_enable =
				!(ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_AP] |
				ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_WLAN]);
		else
			is_smmu_enable =
				!(ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_UC] |
				ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_WLAN]);
				ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_WLAN]);
		break;
		break;
	default:
	default: