[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210308202005.243228-3-vaibhavgupta40@gmail.com>
Date: Tue, 9 Mar 2021 01:50:04 +0530
From: Vaibhav Gupta <vaibhavgupta40@...il.com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
Rob Herring <robh+dt@...nel.org>
Cc: Kishon Vijay Abraham <kishon@...com>, Sekhar Nori <nsekhar@...com>,
Lokesh Vutla <lokeshvutla@...com>,
Praneeth Bajjuri <praneeth@...com>,
Gowtham Tammana <g-tammana@...com>,
linux-crypto@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Peter Ujfalusi <peter.ujfalusi@...com>,
Vaibhav Gupta <v_gupta@...com>
Subject: [PATCH v1 2/3] crypto: sa2ul: Support for per channel coherency
From: Peter Ujfalusi <peter.ujfalusi@...com>
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@...com>
Signed-off-by: Vaibhav Gupta <v_gupta@...com>
---
drivers/crypto/sa2ul.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index f300b0a5958a..6107bfea862d 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);
--
2.30.1
Powered by blists - more mailing lists