summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2018-11-12 20:01:27 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:36:03 +0800
commit955b970c335c4e12697c89b16e953c95b7fde9aa (patch)
tree7282f52d8a613432a0a363c683a81e5c490dd698 /drivers/crypto
parent0dd3612c8838d5cb2f0ed210fcf3e1519c72749b (diff)
Revert "MLK-17304: crypto: caam: Fix error swiotlb buffer is full for caamhash"
This reverts 91c6ddde3f3f168c3e3db49c1f71a25c12cd0869. This commit is no longer needed, it is a rebase artifact since it duplicates upstream commit 944c3d4dca34 ("crypto: caam - fix state buffer DMA (un)mapping") Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/caamhash.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c
index 6e873496fa30..cef0ce4d2598 100644
--- a/drivers/crypto/caam/caamhash.c
+++ b/drivers/crypto/caam/caamhash.c
@@ -707,14 +707,6 @@ static inline void ahash_unmap(struct device *dev,
if (edesc->dst_dma)
dma_unmap_single(dev, edesc->dst_dma, dst_len, DMA_FROM_DEVICE);
- if (state->buf_dma) {
- dma_unmap_single(dev, state->buf_dma,
- (state->current_buf ?
- state->buflen_1 : state->buflen_0),
- DMA_TO_DEVICE);
- state->buf_dma = 0;
- }
-
if (edesc->sec4_sg_bytes)
dma_unmap_single(dev, edesc->sec4_sg_dma,
edesc->sec4_sg_bytes, DMA_TO_DEVICE);