]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99093fc0259d55675de3bd1a12e58088e9cbff07
tree94c268de556595df5811a31d8487918f46376694
parentb8ae9c3ca7d7e4adb945dfcfc7ec4999df6dd8e2
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