OSDN Git Service

crypto: sun8i-ce - split into prepare/run/unprepare
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 18 Sep 2020 07:23:07 +0000 (07:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:18 +0000 (17:48 +1000)
commit0605fa0f78266cc3cb84201020f0cb7b546d72cc
treee192092544c637acc9f7a0f063d07dd22dce9bc7
parenta216f8d540cf13211227daf44996e8a530b92468
crypto: sun8i-ce - split into prepare/run/unprepare

This patch split the do_one_request into three.
Prepare will handle all DMA mapping and initialisation of the task
structure.
Unprepare will clean all DMA mapping.
And the do_one_request will be limited to just executing the task.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h