arm-smmu: Add barrier to make sure SMR register writes is completed

Add barrier to make sure that the SMR register writes is completed in
arm_smmu_sid_switch().

Change-Id: I6198e382a6c3266a0a0c60cc54766338608b05d0
Signed-off-by: Faiyaz Mohammed <quic_faiyazm@quicinc.com>
This commit is contained in:
Faiyaz Mohammed 2022-03-21 14:58:02 +05:30 committed by Chris Goldsworthy
parent c8fc7d9a4e
commit c2b077636e

View File

@ -2652,6 +2652,8 @@ static int __arm_smmu_sid_switch(struct device *dev, void *data)
}
mutex_unlock(&smmu->stream_map_mutex);
/* Add barrier to ensure that the SMR register writes is completed. */
wmb();
arm_smmu_rpm_put(smmu);
return 0;