diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-24 15:36:56 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-24 15:36:56 -0400 |
commit | b9f12a5d97f652c77ef6803dccd0d40d1290f5be (patch) | |
tree | 8f58c8620ffef0d350a5ec022feda492a96b179a /drivers/iommu/arm-smmu.c | |
parent | 9d8dc3e529a19e427fd379118acd132520935c5d (diff) | |
parent | 9a3c4145af32125c5ee39c0272662b47307a8323 (diff) |
Merge tag 'v3.16-rc6' into next
Merge with mainline to bring in changes to MFD to allow merging
ipaq-micro-ts driver.
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r-- | drivers/iommu/arm-smmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 647c3c7fd742..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 | } |
@@ -1804,7 +1804,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu) | |||
1804 | * allocation (PTRS_PER_PGD). | 1804 | * allocation (PTRS_PER_PGD). |
1805 | */ | 1805 | */ |
1806 | #ifdef CONFIG_64BIT | 1806 | #ifdef CONFIG_64BIT |
1807 | smmu->s1_output_size = min(39UL, size); | 1807 | smmu->s1_output_size = min((unsigned long)VA_BITS, size); |
1808 | #else | 1808 | #else |
1809 | smmu->s1_output_size = min(32UL, size); | 1809 | smmu->s1_output_size = min(32UL, size); |
1810 | #endif | 1810 | #endif |