Merge "iommu/arm-smmu: Fix SMR mask extraction for bootloader programmed SMRs"

This commit is contained in:
qctecmdr 2021-01-22 21:12:24 -08:00 • committed by Gerrit - the friendly Code Review server
commit c522f59658

View file

@ -4422,7 +4422,7 @@ static int arm_smmu_handoff_cbs(struct arm_smmu_device *smmu)
if (!(raw_smr & SMR_VALID))
continue;
smr.mask = FIELD_GET(SMR_MASK, raw_smr);
smr.mask = FIELD_GET(SMR_MASK, raw_smr & ~SMR_VALID);
smr.id = FIELD_GET(SMR_ID, raw_smr);
smr.valid = true;