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

Commit 7c1cd10a authored by Vijayanand Jitta's avatar Vijayanand Jitta Committed by Charan Teja Reddy
Browse files

iommu: arm-smmu: enable clocks and regulators in smmu detach



During smmu detach, arm_smmu_domain_remove_master function is
called which clears SMR, S2CR registers and performs tlb_flush
operation. Enable the required clocks and regulators for the access.

Change-Id: I8317b8bfe95b3b76cd2878d4090dd7b647094f7a
Signed-off-by: default avatarVijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 2cbcc095
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2346,14 +2346,14 @@ static void arm_smmu_detach_dev(struct iommu_domain *domain,
		return;
	}

	arm_smmu_domain_remove_master(smmu_domain, fwspec);
	if (atomic_domain)
		arm_smmu_power_on_atomic(smmu->pwr);
	else
		arm_smmu_power_on(smmu->pwr);

	/* Remove additional vote for atomic power */
	if (atomic_domain) {
		WARN_ON(arm_smmu_power_on_atomic(smmu->pwr));
	arm_smmu_domain_remove_master(smmu_domain, fwspec);
	arm_smmu_power_off(smmu->pwr);
}
}

static int arm_smmu_assign_table(struct arm_smmu_domain *smmu_domain)
{