mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
iommu/arm-smmu: Fix transaction flags in qsmmuv500_iova_to_phys
While performing ecats in qsmmuv500_iova_to_phys, transaction flags
are incorrectly set using flag variable instead of trans_flags variable.
Fix this.
Fixes: efa31e1dd437 ("iommu/arm-smmu: replicate faulty transaction")
Change-Id: Ia8f46708e717a91c0d10a66cd53ed7298068f664
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
[guptap@codeaurora.org: Resolved trivial merge conflict]
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
This commit is contained in:
parent
37d0a368db
commit
cfd6f43cdb
1 changed files with 3 additions and 3 deletions
|
|
@ -592,15 +592,15 @@ redo:
|
|||
val |= FIELD_PREP(DEBUG_TXN_AXPROT, DEBUG_TXN_AXPROT_NSEC);
|
||||
|
||||
/* Write or Read Access */
|
||||
if (flags & IOMMU_TRANS_WRITE)
|
||||
if (trans_flags & IOMMU_TRANS_WRITE)
|
||||
val |= DEBUG_TXN_WRITE;
|
||||
|
||||
/* Priviledged or Unpriviledged Access */
|
||||
if (flags & IOMMU_TRANS_PRIV)
|
||||
if (trans_flags & IOMMU_TRANS_PRIV)
|
||||
val |= FIELD_PREP(DEBUG_TXN_AXPROT, DEBUG_TXN_AXPROT_PRIV);
|
||||
|
||||
/* Data or Instruction Access */
|
||||
if (flags & IOMMU_TRANS_INST)
|
||||
if (trans_flags & IOMMU_TRANS_INST)
|
||||
val |= FIELD_PREP(DEBUG_TXN_AXPROT, DEBUG_TXN_AXPROT_INST);
|
||||
|
||||
val |= DEBUG_TXN_TRIGGER;
|
||||
|
|
|
|||
Loading…
Reference in a new issue