crypto: omap - do not call dmaengine_terminate_all
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 22 Jun 2016 13:23:36 +0000 (16:23 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jun 2016 13:24:57 +0000 (21:24 +0800)
The extra call to dmaengine_terminate_all is not needed, as the DMA
is not running at this point. This improves performance slightly.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c
drivers/crypto/omap-sham.c

index 4a0e6a545ba266f92b963f5fce8fc9c0842cbf77..8178632de788f436022222920a362478267a01a4 100644 (file)
@@ -528,8 +528,6 @@ static int omap_aes_crypt_dma_stop(struct omap_aes_dev *dd)
 
        omap_aes_dma_stop(dd);
 
-       dmaengine_terminate_all(dd->dma_lch_in);
-       dmaengine_terminate_all(dd->dma_lch_out);
 
        return 0;
 }
index 8090db0de4668b36edcf30508d0f86f2f09d3a45..3321f003f4655ed1c14e3cf6073137d69535d7ed 100644 (file)
@@ -815,7 +815,6 @@ static int omap_sham_update_dma_stop(struct omap_sham_dev *dd)
 {
        struct omap_sham_reqctx *ctx = ahash_request_ctx(dd->req);
 
-       dmaengine_terminate_all(dd->dma_lch);
 
        if (ctx->flags & BIT(FLAGS_SG)) {
                dma_unmap_sg(dd->dev, ctx->sg, 1, DMA_TO_DEVICE);