]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: marvell - Don't chain at DMA level when backlog is disabled
authorRomain Perier <romain.perier@free-electrons.com>
Fri, 22 Jul 2016 12:40:55 +0000 (14:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Jul 2016 05:04:43 +0000 (13:04 +0800)
commit8fc58cc2e5cb0d4527bb54c1806ebecd3210e5b6
tree2677e1625e24d3b76fc923fade5de6df4fa58f56
parente299089a39654920a0096e1dbc01ed14c8226dc8
crypto: marvell - Don't chain at DMA level when backlog is disabled

The flag CRYPTO_TFM_REQ_MAY_BACKLOG is optional and can be set from the
user to put requests into the backlog queue when the main cryptographic
queue is full. Before calling mv_cesa_tdma_chain we must check the value
of the return status to be sure that the current request has been
correctly queued or added to the backlog.

Fixes: 4bac03b18267 ("crypto: marvell - Add support for chaining...")
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.c