iommu/arm-smmu: fix incorrect use of S2CR_TYPE_SHIFT
[deliverable/linux.git] / drivers / iommu / arm-smmu.c
index afcb0e3492cf4fbc102caa0547d2e069c30cae95..1599354e974d200555218509ba87ed4a65647027 100644 (file)
@@ -1167,7 +1167,7 @@ static int arm_smmu_domain_add_master(struct arm_smmu_domain *smmu_domain,
        for (i = 0; i < master->num_streamids; ++i) {
                u32 idx, s2cr;
                idx = master->smrs ? master->smrs[i].idx : master->streamids[i];
-               s2cr = (S2CR_TYPE_TRANS << S2CR_TYPE_SHIFT) |
+               s2cr = S2CR_TYPE_TRANS |
                       (smmu_domain->root_cfg.cbndx << S2CR_CBNDX_SHIFT);
                writel_relaxed(s2cr, gr0_base + ARM_SMMU_GR0_S2CR(idx));
        }
This page took 0.025326 seconds and 5 git commands to generate.