Merge "arm-smmu: grab SMR lock in arm_smmu_device_reset()"
This commit is contained in:
commit
d2101694a7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user