diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2019-05-03 16:17:41 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-23 08:01:04 +0200 |
commit | b2b2ee350e701df9086275b8f857f6db10546f15 (patch) | |
tree | b83fcbc3268eb548cbec4748e07dd6576db286f5 /drivers/crypto/caam/intern.h | |
parent | crypto: caam/qi - don't allocate an extra platform device (diff) | |
download | linux-b2b2ee350e701df9086275b8f857f6db10546f15.tar.xz linux-b2b2ee350e701df9086275b8f857f6db10546f15.zip |
crypto: caam/qi - fix address translations with IOMMU enabled
When IOMMU is enabled, iova -> phys address translation should be
performed using iommu_ops, not dma_to_phys().
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/intern.h')
-rw-r--r-- | drivers/crypto/caam/intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/intern.h b/drivers/crypto/caam/intern.h index c9089da5dbaf..6af84bbc612c 100644 --- a/drivers/crypto/caam/intern.h +++ b/drivers/crypto/caam/intern.h @@ -70,6 +70,8 @@ struct caam_drv_private { struct caam_queue_if __iomem *qi; /* QI control region */ struct caam_job_ring __iomem *jr[4]; /* JobR's register space */ + struct iommu_domain *domain; + /* * Detected geometry block. Filled in from device tree if powerpc, * or from register-based version detection code |