Skip to content

Commit 5747ff3

Browse files
horiagherbertx
authored andcommitted
crypto: caam/qi - explicitly set dma_ops
Since ARM64 commit 1dccb59 ("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: 67c2315 ("crypto: caam - add Queue Interface (QI) backend support") Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 36cda08 commit 5747ff3

File tree

1 file changed

+1
-0
lines changed
  • drivers/crypto/caam

1 file changed

+1
-0
lines changed

drivers/crypto/caam/qi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ int caam_qi_init(struct platform_device *caam_pdev)
734734
qi_pdev = platform_device_register_full(&qi_pdev_info);
735735
if (IS_ERR(qi_pdev))
736736
return PTR_ERR(qi_pdev);
737+
set_dma_ops(&qi_pdev->dev, get_dma_ops(ctrldev));
737738

738739
ctrlpriv = dev_get_drvdata(ctrldev);
739740
qidev = &qi_pdev->dev;

0 commit comments

Comments
 (0)