diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2017-06-14 11:43:50 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:34 (GMT) |
commit | ed58a55b931df7b02c7d34b338ec73347ac9d901 (patch) | |
tree | ce2abfcd10757d7634c755831829b856d06df1ba | |
parent | 38010322d89985f6fd6a9110dc43cdffe7acf556 (diff) | |
download | linux-ed58a55b931df7b02c7d34b338ec73347ac9d901.tar.xz |
crypto: caam/qi - explicitly set dma_ops
Since ARM64 commit 1dccb598df549 ("arm64: simplify dma_get_ops"),
dma_ops no longer default to swiotlb_dma_ops, but to dummy_dma_ops.
We have to explicitly set dma_ops in the driver - at least for ARM64.
Fixes: 67c2315def06 ("crypto: caam - add Queue Interface (QI) backend support")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
-rw-r--r-- | drivers/crypto/caam/qi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/caam/qi.c b/drivers/crypto/caam/qi.c index d76db5f..c9ea50b 100644 --- a/drivers/crypto/caam/qi.c +++ b/drivers/crypto/caam/qi.c @@ -737,6 +737,7 @@ int caam_qi_init(struct platform_device *caam_pdev) qi_pdev = platform_device_register_full(&qi_pdev_info); if (IS_ERR(qi_pdev)) return PTR_ERR(qi_pdev); + arch_setup_dma_ops(&qi_pdev->dev, 0, 0, NULL, true); ctrlpriv = dev_get_drvdata(ctrldev); qidev = &qi_pdev->dev; |