]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - enable crypto-engine retry mechanism
authorIuliana Prodan <iuliana.prodan@nxp.com>
Mon, 26 Oct 2020 19:06:26 +0000 (21:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Nov 2020 03:29:11 +0000 (14:29 +1100)
commitbff5cdb2ccd54c29067e50d2d061db3592c73d63
treeedca7dbf57f0dfeec1cbbc8edc2edbdf1e6259fb
parent688452f8afbce79974c726f42f0d03ea14441f9b
crypto: caam - enable crypto-engine retry mechanism

Use the new crypto_engine_alloc_init_and_set() function to
initialize crypto-engine and enable retry mechanism.

Set the maximum size for crypto-engine software queue based on
Job Ring size (JOBR_DEPTH) and a threshold (reserved for the
non-crypto-API requests that are not passed through crypto-engine).

The callback for do_batch_requests is NULL, since CAAM
doesn't support linked requests.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/intern.h
drivers/crypto/caam/jr.c