]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: marvell - Add a complete operation for async requests
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 21 Jun 2016 08:08:36 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:17:24 +0000 (18:17 +0800)
commit1bf6682cb31dff64c11564fe0c12ddd2cda23626
tree79631a520a2e4591a50fa4cb01001d015d659d7d
parent53da740fed302fbecd66d21cad1c4115b9aaab78
crypto: marvell - Add a complete operation for async requests

So far, the 'process' operation was used to check if the current request
was correctly handled by the engine, if it was the case it copied
information from the SRAM to the main memory. Now, we split this
operation. We keep the 'process' operation, which still checks if the
request was correctly handled by the engine or not, then we add a new
operation for completion. The 'complete' method copies the content of
the SRAM to memory. This will soon become useful if we want to call
the process and the complete operations from different locations
depending on the type of the request (different cleanup logic).

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
drivers/crypto/marvell/cesa.h
drivers/crypto/marvell/cipher.c
drivers/crypto/marvell/hash.c