[PATCH] crypto: mediatek - remove obsolete documentation

2021-03-03 Thread Vic Wu
The crypto mediatek driver has been replaced by the inside-secure driver now. Remove DT bindings documentation and update crypto engine nodes to the mt7623.dtsi files. Signed-off-by: Vic Wu Acked-by: Ryder Lee --- Documentation/devicetree/bindings/crypto/mediatek-crypto.txt | 25

[PATCH] crypto: mediatek - remove obsolete driver

2020-12-07 Thread Vic Wu
The crypto mediatek driver has been replaced by the inside-secure driver now. Remove this driver to avoid having duplicate drivers. Signed-off-by: Vic Wu Acked-by: Ryder Lee --- drivers/crypto/Kconfig | 15 - drivers/crypto/Makefile|1 - drivers/crypto

[PATCH 3/5] crypto: mediatek: only treat EBUSY as transient if backlog

2019-08-27 Thread Vic Wu
From: Ryder Lee The driver was treating -EBUSY as indication of queueing to backlog without checking that backlog is enabled for the request. Fix it by checking request flags. Signed-off-by: Ryder Lee Signed-off-by: Vic Wu --- drivers/crypto/mediatek/mtk-sha.c | 4 +++- 1 file changed, 3

[PATCH 5/5] crypto: mediatek: fix incorrect crypto key setting

2019-08-27 Thread Vic Wu
Record crypto key to context during setkey and set the key to transform state buffer in encrypt/decrypt process. Signed-off-by: Vic Wu --- drivers/crypto/mediatek/mtk-aes.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/mediatek/mtk-aes.c b

[PATCH 2/5] crypto: mediatek: fix uninitialized value of gctx->textlen

2019-08-27 Thread Vic Wu
From: Ryder Lee Add a pre-computed text length to avoid uninitialized value in the check. Fixes: e47270665b5f ("crypto: mediatek - Add empty messages check in GCM mode") Signed-off-by: Ryder Lee Signed-off-by: Vic Wu --- drivers/crypto/mediatek/mtk-aes.c | 10 +- 1 file

[PATCH 4/5] crypto: mediatek: add support to OFB/CFB mode

2019-08-27 Thread Vic Wu
From: Ryder Lee This patch adds support to OFB/CFB mode. Signed-off-by: Ryder Lee Signed-off-by: Vic Wu --- drivers/crypto/mediatek/mtk-aes.c | 85 --- 1 file changed, 78 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers

[PATCH 1/5] crypto: mediatek: move mtk_aes_find_dev() to the right place

2019-08-27 Thread Vic Wu
From: Ryder Lee Move mtk_aes_find_dev() to right functions as nobody uses the 'cryp' under current flows. We can also avoid duplicate checks here and there in this way. Signed-off-by: Ryder Lee Signed-off-by: Vic Wu --- drivers/crypto/mediatek/mtk-