crypto: caam/qi2 - remove double buffering for ahash
authorAndrei Botila <andrei.botila@nxp.com>
Mon, 9 Dec 2019 16:59:56 +0000 (18:59 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Dec 2019 06:58:33 +0000 (14:58 +0800)
commit76e227719a14064f47ab0109c55368c4b5baeaca
tree94c268de556595df5811a31d8487918f46376694
parent46b49abc5d0ada1e2ba8f872ad98fa742555bdb1
crypto: caam/qi2 - remove double buffering for ahash

Previously double buffering was used for storing previous and next
"less-than-block-size" bytes. Double buffering can be removed by moving
the copy of next "less-than-block-size" bytes after current request is
executed by HW.

Signed-off-by: Andrei Botila <andrei.botila@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c