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

Commit eb04df33 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: msm: Move location of local iommu halt"

parents 29906929 8e15c568
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -899,16 +899,15 @@ static void msm_iommu_detach_dev(struct iommu_domain *domain,
	iommu_drvdata->asid[ctx_drvdata->asid - 1]--;
	ctx_drvdata->asid = -1;

	iommu_halt(iommu_drvdata);

	__reset_context(iommu_drvdata->cb_base, ctx_drvdata->num);

	/*
	 * Only reset the M2V tables on the very last detach */
	if (!is_secure && iommu_drvdata->ctx_attach_count == 1)
	if (!is_secure && iommu_drvdata->ctx_attach_count == 1) {
		iommu_halt(iommu_drvdata);
		__release_smg(iommu_drvdata->base);

		iommu_resume(iommu_drvdata);
	}

	__disable_clocks(iommu_drvdata);