ANDROID: KVM: arm64: iommu: Fix power tracking

While reworking power flow for Android16, one line of code
remained which is not correct.

power state on suspend should only be updated on success, similar
to resume.

Bug: 357781595
Change-Id: Ib894362085eaa6f123b0d9083f430ad8a7c14569
Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
Mostafa Saleh
2025-07-08 13:57:23 +00:00
parent 61184996a8
commit 862ce4b2c4

View File

@@ -710,7 +710,6 @@ static int iommu_power_off(struct kvm_power_domain *pd)
int ret;
kvm_iommu_lock(iommu);
iommu->power_is_off = true;
ret = kvm_iommu_ops->suspend ? kvm_iommu_ops->suspend(iommu) : 0;
if (!ret)
iommu->power_is_off = true;