summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2021-04-13 11:15:58 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-22 09:31:30 +0200
commite8a4529d4598467577b847a8ace14ecc479e4f64 (patch)
treeda41f8eb725b04bc8ad4faaafb3970ea2a6ecfc5 /drivers/crypto
parentdt-bindings: crypto: ti,sa2ul: Add new compatible for AM64 (diff)
downloadlinux-e8a4529d4598467577b847a8ace14ecc479e4f64.tar.xz
linux-e8a4529d4598467577b847a8ace14ecc479e4f64.zip
crypto: sa2ul - Support for per channel coherency
On AM64 the DMA channel for sa2ul can be configured to be coherent or non coherent via DT binding. Use the dmaengine_get_device_for_dma_api() to get the device pointer which should be used for with the dma_api to use matching dma_ops for the channel coherency/non coherency. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vaibhav Gupta <v_gupta@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/sa2ul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index b0f0502a5bb0..7b991b77fb12 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -1106,7 +1106,7 @@ static int sa_run(struct sa_req *req)
else
dma_rx = pdata->dma_rx1;
- ddev = dma_rx->device->dev;
+ ddev = dmaengine_get_dma_device(pdata->dma_tx);
rxd->ddev = ddev;
memcpy(cmdl, sa_ctx->cmdl, sa_ctx->cmdl_size);