crypto: talitos - do not perform unnecessary dma synchronisation
authorLEROY Christophe <christophe.leroy@c-s.fr>
Mon, 26 Feb 2018 16:40:06 +0000 (17:40 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:35 +0000 (22:45 +0800)
commit6a4967c3e1fc1f2fd19283e5c98076a65f7b29ff
tree922e9735fd3593d1d9aed008c753182f936fe2e1
parentad4cd51fb8375109edb377712b5f9c0c31ece33e
crypto: talitos - do not perform unnecessary dma synchronisation

req_ctx->hw_context is mainly used only by the HW. So it is not needed
to sync the HW and the CPU each time hw_context in DMA mapped.
This patch modifies the DMA mapping in order to limit synchronisation
to necessary situations.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c