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)
commit87421984b4d2e04cfe858849db10ac326d9f3aed
treeb8356d4297300ab8d2a554b422b622973ddb53f2
parent382ae57d5e52a62e77d62e60e5be9a6526d40da0
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