]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mediatek - rework crypto request completion
authorRyder Lee <ryder.lee@mediatek.com>
Fri, 20 Jan 2017 05:41:11 +0000 (13:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Jan 2017 14:50:30 +0000 (22:50 +0800)
commit2e01eeaa954cdbd48cafa5e248a89ae9053cdafd
treeb8356d4297300ab8d2a554b422b622973ddb53f2
parent3169b6908b8501334a3f5a6cb0953b756a0e5159
crypto: mediatek - rework crypto request completion

This patch introduces a new callback 'resume' in the struct mtk_aes_rec.
This callback is run to resume/complete the processing of the crypto
request when woken up by AES interrupts when DMA completion.

This callback will help implementing the GCM mode support in further
patches.

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