diff options
author | Stepan Moskovchenko <stepanm@codeaurora.org> | 2011-02-28 16:04:55 -0800 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-03-08 14:42:30 -0800 |
commit | b0e7808d548ea1d857216d31d63078411203a116 (patch) | |
tree | eed2f1cd89faf7b5f84e649947cb086aa9ffd7a6 /arch/arm/mach-msm/iommu.c | |
parent | a43d8c101eb71bf4527dd7f36a34a5a502894f38 (diff) | |
download | lwn-b0e7808d548ea1d857216d31d63078411203a116.tar.gz lwn-b0e7808d548ea1d857216d31d63078411203a116.zip |
msm: iommu: Don't read from write-only registers
Don't read from V2Pxx command registers when doing
iova-to-phys operations. These registers are write-only and
reading the value before modifying the VA bits is
unnecessary.
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/iommu.c')
-rw-r--r-- | arch/arm/mach-msm/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/iommu.c b/arch/arm/mach-msm/iommu.c index 0146f519e85c..1a584e077c61 100644 --- a/arch/arm/mach-msm/iommu.c +++ b/arch/arm/mach-msm/iommu.c @@ -579,7 +579,7 @@ static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain, /* Invalidate context TLB */ SET_CTX_TLBIALL(base, ctx, 0); - SET_V2PPR_VA(base, ctx, va >> V2Pxx_VA_SHIFT); + SET_V2PPR(base, ctx, va & V2Pxx_VA); par = GET_PAR(base, ctx); |