aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2014-04-17 22:20:48 -0400
committerWill Deacon <will.deacon@arm.com>2014-05-02 11:49:37 -0400
commit6069d23ce0e568909d847f28af0257b085e8e77a (patch)
tree71ed56ca1e428bbfa7aa21e448489a1f52ce375b
parentc44308413b92a555d1501a6c0db9489e288bb81b (diff)
iommu/arm-smmu: fix incorrect use of S2CR_TYPE_SHIFT
There is already S2CR_TYPE_SHIFT in S2CR_TYPE_TRANS macro, so drop the second shift. Note that, since S2CR_TYPE_SHIFT is 0x0, there is no functional change introduced by this patch. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index afcb0e3492cf..1599354e974d 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1167,7 +1167,7 @@ static int arm_smmu_domain_add_master(struct arm_smmu_domain *smmu_domain,
1167 for (i = 0; i < master->num_streamids; ++i) { 1167 for (i = 0; i < master->num_streamids; ++i) {
1168 u32 idx, s2cr; 1168 u32 idx, s2cr;
1169 idx = master->smrs ? master->smrs[i].idx : master->streamids[i]; 1169 idx = master->smrs ? master->smrs[i].idx : master->streamids[i];
1170 s2cr = (S2CR_TYPE_TRANS << S2CR_TYPE_SHIFT) | 1170 s2cr = S2CR_TYPE_TRANS |
1171 (smmu_domain->root_cfg.cbndx << S2CR_CBNDX_SHIFT); 1171 (smmu_domain->root_cfg.cbndx << S2CR_CBNDX_SHIFT);
1172 writel_relaxed(s2cr, gr0_base + ARM_SMMU_GR0_S2CR(idx)); 1172 writel_relaxed(s2cr, gr0_base + ARM_SMMU_GR0_S2CR(idx));
1173 } 1173 }