]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ff0a09a2c754c9681aef6a6847f2d8b33967e3c
tree922e9735fd3593d1d9aed008c753182f936fe2e1
parent21eb53600979db3530461cf24fe6f01b8549efb2
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