mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 566cce03ee27f1288a4a029f5c7d437cc2e11eac Mon Sep 17 00:00:00 2001
|
|
From: Corentin Labbe <clabbe@baylibre.com>
|
|
Date: Tue, 27 Sep 2022 07:55:09 +0000
|
|
Subject: [PATCH 47/49] crypto: rockchip: rk_ahash_reg_init use crypto_info
|
|
from parameter
|
|
|
|
rk_ahash_reg_init() use crypto_info from TFM context, since we will
|
|
remove it, let's take if from parameters.
|
|
|
|
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
|
|
---
|
|
drivers/crypto/rockchip/rk3288_crypto_ahash.c | 8 +++-----
|
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
--- a/drivers/crypto/rockchip/rk3288_crypto_ahash.c
|
|
+++ b/drivers/crypto/rockchip/rk3288_crypto_ahash.c
|
|
@@ -78,12 +78,10 @@ static int zero_message_process(struct a
|
|
return 0;
|
|
}
|
|
|
|
-static void rk_ahash_reg_init(struct ahash_request *req)
|
|
+static void rk_ahash_reg_init(struct ahash_request *req,
|
|
+ struct rk_crypto_info *dev)
|
|
{
|
|
struct rk_ahash_rctx *rctx = ahash_request_ctx(req);
|
|
- struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
|
|
- struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm);
|
|
- struct rk_crypto_info *dev = tctx->dev;
|
|
int reg_status;
|
|
|
|
reg_status = CRYPTO_READ(dev, RK_CRYPTO_CTRL) |
|
|
@@ -281,7 +279,7 @@ static int rk_hash_run(struct crypto_eng
|
|
goto theend;
|
|
}
|
|
|
|
- rk_ahash_reg_init(areq);
|
|
+ rk_ahash_reg_init(areq, rkc);
|
|
|
|
while (sg) {
|
|
reinit_completion(&rkc->complete);
|