crypto: talitos - do hw_context DMA mapping outside the requests
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 6 Oct 2017 13:05:04 +0000 (15:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:37 +0000 (22:55 +0800)
commit49f9783b0cea9a4e38fdbfe70ca296e6f20914c4
tree47081b54da53fb4c727b76bc19096053f9de5686
parent2e13ce0812c624f1ee08ab933ebb89dddffed32c
crypto: talitos - do hw_context DMA mapping outside the requests

At every request, we map and unmap the same hash hw_context.

This patch moves the dma mapping/unmapping in functions ahash_init()
and ahash_import().

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