Commit 5747ff30 authored by Horia Geantă's avatar Horia Geantă Committed by Herbert Xu

crypto: caam/qi - explicitly set dma_ops

Since ARM64 commit 1dccb598 ("arm64: simplify dma_get_ops"),
dma_ops no longer default to swiotlb_dma_ops, but to dummy_dma_ops.

dma_ops have to be explicitly set in the driver - at least for ARM64.

Fixes: 67c2315d ("crypto: caam - add Queue Interface (QI) backend support")
Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 36cda08f
...@@ -734,6 +734,7 @@ int caam_qi_init(struct platform_device *caam_pdev) ...@@ -734,6 +734,7 @@ int caam_qi_init(struct platform_device *caam_pdev)
qi_pdev = platform_device_register_full(&qi_pdev_info); qi_pdev = platform_device_register_full(&qi_pdev_info);
if (IS_ERR(qi_pdev)) if (IS_ERR(qi_pdev))
return PTR_ERR(qi_pdev); return PTR_ERR(qi_pdev);
set_dma_ops(&qi_pdev->dev, get_dma_ops(ctrldev));
ctrlpriv = dev_get_drvdata(ctrldev); ctrlpriv = dev_get_drvdata(ctrldev);
qidev = &qi_pdev->dev; qidev = &qi_pdev->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment