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/ctrl.c | |
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/ctrl.c')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 38bcbbccdfda..bbde6efce8af 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -702,6 +702,7 @@ static int caam_probe(struct platform_device *pdev) } ctrlpriv->era = caam_get_era(ctrl); + ctrlpriv->domain = iommu_get_domain_for_dev(dev); #ifdef CONFIG_DEBUG_FS /* |