Merge "arm-smmu: grab SMR lock in arm_smmu_device_reset()"

This commit is contained in:
qctecmdr 2023-12-20 13:55:06 -08:00 committed by Gerrit - the friendly Code Review server
commit d2101694a7

View File

@ -2932,8 +2932,10 @@ static void arm_smmu_device_reset(struct arm_smmu_device *smmu)
* Reset stream mapping groups: Initial values mark all SMRn as
* invalid and all S2CRn as bypass unless overridden.
*/
mutex_lock(&smmu->stream_map_mutex);
for (i = 0; i < smmu->num_mapping_groups; ++i)
arm_smmu_write_sme(smmu, i);
mutex_unlock(&smmu->stream_map_mutex);
/* Make sure all context banks are disabled and clear CB_FSR */
for (i = 0; i < smmu->num_context_banks; ++i) {