]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: marvell/cesa - factor out adding an operation and launching it
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:24:06 +0000 (17:24 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:11:05 +0000 (22:11 +0800)
commit9621288673cb2a1805eadf29b92e5bcec6a0e2e5
tree4948ca7041e091cbb3add58064f4d05007edf120
parent8651791e5403a0e0634b76dee91b102dc4f40385
crypto: marvell/cesa - factor out adding an operation and launching it

Add a helper to add the fragment operation block followed by the DMA
entry to launch the operation.

Although at the moment this pattern only strictly appears at one site,
two other sites can be factored as well by slightly changing the order
in which the DMA operations are performed.  This should be harmless as
the only thing which matters is to have all the data loaded into SRAM
prior to launching the operation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/hash.c