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

Commit 76fa02bf authored by Vivek Kumar's avatar Vivek Kumar
Browse files

iommu: arm-smmu: Make restore of smmu-context runtime detectable



Update the logic to restore smmu-context-bank registers using
an additional 'smmu_restore' flag which is only set during
hibernation restore, which makes the logic runtime along 
with the compile-time hibernation flag.

Change-Id: Ic62442601c9dc7ceff4745fdc70b6dc3f56769d7
Signed-off-by: default avatarVivek Kumar <vivekuma@codeaurora.org>
parent 44b48b10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4183,7 +4183,7 @@ static void arm_smmu_device_reset(struct arm_smmu_device *smmu)
	 * invalid and all S2CRn as bypass unless overridden.
	 */
	if (!(smmu->options & ARM_SMMU_OPT_SKIP_INIT) ||
			IS_ENABLED(CONFIG_HIBERNATION)) {
		 (IS_ENABLED(CONFIG_HIBERNATION) && smmu->smmu_restore)) {
		for (i = 0; i < smmu->num_mapping_groups; ++i)
			arm_smmu_write_sme(smmu, i);