crypto: mediatek - add queue_task tasklet
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 9 Mar 2017 02:11:16 +0000 (10:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Mar 2017 09:58:54 +0000 (17:58 +0800)
commit0d4a826611676198aea8ae531b84dd980a4b5f61
treec7348f4b629c7c433aa8a014494fb6374eed37e8
parent3d21c41f7e9b51c70d37b316f11cf5cce9dd3311
crypto: mediatek - add queue_task tasklet

This patch adds 'queue_task' to dequeue crypto requset. This will help to
avoid directly calling mtk_aes_handle_queue() / mtk_sha_handle_queue()
from done tasklet or error handler.

In order to avoid confusion, the new code properly renames DMA completion
"task" to "done_task".

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-aes.c
drivers/crypto/mediatek/mtk-platform.h
drivers/crypto/mediatek/mtk-sha.c