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:
parent
c8fc7d9a4e
commit
c2b077636e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user