]> git.baikalelectronics.ru Git - kernel.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)
commit3bd993da9ef17fd71b02eb20ef1d855afa6ce927
tree4948ca7041e091cbb3add58064f4d05007edf120
parent3eb92f160692a6f3dfe172fbfc716e42e224faf6
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