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

Commit e87894f3 authored by Skylar Chang's avatar Skylar Chang Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: set s1 bypass flag for AP



Update s1 bypass flag for IPA AP context bank with
the correct value whether SMMU S1 is bypassed or not.

Change-Id: Ie95028ffff892ffe876c4e00b113d642692d95a9
CRs-Fixed: 2202562
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent fce0dd25
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6070,6 +6070,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
	if (of_property_read_bool(dev->of_node,
		"qcom,smmu-s1-bypass") || ipa3_ctx->ipa_config_is_mhi) {
		smmu_info.s1_bypass_arr[IPA_SMMU_CB_AP] = true;
		ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_AP] = true;
		if (iommu_domain_set_attr(cb->mapping->domain,
				DOMAIN_ATTR_S1_BYPASS,
				&bypass)) {
@@ -6081,6 +6082,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
		IPADBG("AP/USB SMMU S1 BYPASS\n");
	} else {
		smmu_info.s1_bypass_arr[IPA_SMMU_CB_AP] = false;
		ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_AP] = false;
		if (iommu_domain_set_attr(cb->mapping->domain,
				DOMAIN_ATTR_ATOMIC,
				&atomic_ctx)) {