Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2221948imw; Wed, 6 Jul 2022 02:09:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tiJHqDJG2Bm6wlxBw7B8sj/gbRySfbE68trKbQEpUTStvFJ3qU4Cjx3w9ccOUXPIOT4y/w X-Received: by 2002:a05:6402:43c5:b0:435:89ee:578f with SMTP id p5-20020a05640243c500b0043589ee578fmr53827854edc.225.1657098559239; Wed, 06 Jul 2022 02:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098559; cv=none; d=google.com; s=arc-20160816; b=vZr5pwHG0u0RreUf978Ru4CqZrZ/xEWEpWf59wIcQ7pS9tuH/8X0MO8whzGnS7zSO9 RBQ7CiQegW4dahy0NoEKvDNpOyLdpAYSIsDxtdXsZFFc72dU4i8bFOVUKmiw/6BOh9p9 J8ElPqi9Vk7FAjlu41qxVxUzCiN9oZ1+aoeYaE4O7l4T9T0vCw9GXRfFW8Te5Y3MlokN TUNx0y+1Y8pse3HKbCQm1chsAXNxd5+6/yMc9Pu82ApYjUyDg9+18Pf7Jy3k/yDJgEhi ouG2q3an7dr0LMBTC4wrCZJ3gzu0cetq21N49PNIrkCIoAM057dS5wOzV26nBUXzuyFK wTcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/HcULCDUWUOb7zL9pkaT5teTJK7hgsOh6ToY9+UZMac=; b=0XV5G65vcRsEM8LRvHFnXbIGDu0Un9pI+WM/Zm7/wSTbkEL5vIFLsQU8jdfLusswWE JniFgwdEvZwTGbBatGBfSPUQbq9hh0wd+su91q2UUoVbL1YO8Z6Na7Y8UUQax4WfoF2U kPSCPdWbhq6HVSVK0pWZSb3L4N7ciJ9LuXx31GmlRorkICMckNxhzMBtzpVO9YqPFsx2 PEpfmZ917AJGktnoRCFthDrbmEYttZ1gQJ48m8nwAqKHIRaZEYBSTKWIGGx9yVG5bHeU fpOwLiEsUebZFEp9IKGEW5AWZlSC6Jp4lFuWAy/jT9HSx/3cIABgv6tVCC2qtyT0U3TV 88Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jzmrHnL6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a056402241800b00437dc92e8basi27593324eda.368.2022.07.06.02.08.53; Wed, 06 Jul 2022 02:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jzmrHnL6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232848AbiGFJHs (ORCPT + 99 others); Wed, 6 Jul 2022 05:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232856AbiGFJGi (ORCPT ); Wed, 6 Jul 2022 05:06:38 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 621272528D for ; Wed, 6 Jul 2022 02:05:05 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id cl1so21071608wrb.4 for ; Wed, 06 Jul 2022 02:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/HcULCDUWUOb7zL9pkaT5teTJK7hgsOh6ToY9+UZMac=; b=jzmrHnL6AP5JP5ynKqMYe5yX2tYmFdVE8TwhZFHgWJFWW0o1xKFCEzfUtnEChQnGm/ A6fQvxFRl2SJpiM4Zj/xug3hmVwSmyjac1QgUpHLeezzF65VvWPXm1axFpEEUOV6/Tvq FmFmnBGkQtH8EGsxTiOQ3zh9mBrKz/VYH64Ram1n1qoiNJN0DeG0dPQXrNtxp3U+wfWW e1NjKc352R2J8iC4t/8fmbX8ZkB6Zor6dVY+HZIwU2XX5wv7jTxP50GPf53rIHxA+20F 12t1xepnNyAfFnfApYwl21tsc0KoW0p5KIZ1vlvUXF4b+4tt44fifPg2WA5jVg9InUm5 TAyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/HcULCDUWUOb7zL9pkaT5teTJK7hgsOh6ToY9+UZMac=; b=MZvAE/FfuJ5pj6pP91o4P9PhdORAaEsfle3goel8OVRZUZPJqCzsyIRC66X3yKE2YR +TPizKjEAbAg6l5chvokVOyRvaLx0APqKPusUd8O2q5vxaFbyH5P91U5XYGYj/gMpKao b/srY5h2yJE15jyemNZxoT5WYyCqrwh5x18dvNZPzbYtXQXEnibdayYf9LwyKt5DAPPi 2UZ9EKfx/B9b6OnW+iX8j44bkL6V6r3IjnhPALJeULHYU5axaNqJE+qLgcpqiQGXziRX 2OHm8FAqzvlBgwwQsS3g+AuBZf1Bttcyzr8y4LMmzXPzHZMPay7rR7qrrNMH7pM+olcJ 4XkQ== X-Gm-Message-State: AJIora/528rmS202jdW+LvXkbs0Pk7UC+PG6cuZl2eztOLuCPXxpjlnI faI4RXDgaJhjYYai6C1F4aNCzw== X-Received: by 2002:adf:fb08:0:b0:21b:af81:2ffd with SMTP id c8-20020adffb08000000b0021baf812ffdmr36963912wrr.685.1657098305026; Wed, 06 Jul 2022 02:05:05 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id v11-20020adfe28b000000b0021d6ef34b2asm5230223wri.51.2022.07.06.02.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 02:05:04 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, john@metanate.com, didi.debian@cknow.org, Corentin Labbe Subject: [PATCH v8 31/33] crypto: rockchip: rk_ahash_reg_init use crypto_info from parameter Date: Wed, 6 Jul 2022 09:04:10 +0000 Message-Id: <20220706090412.806101-32-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220706090412.806101-1-clabbe@baylibre.com> References: <20220706090412.806101-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 --- drivers/crypto/rockchip/rk3288_crypto_ahash.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto_ahash.c b/drivers/crypto/rockchip/rk3288_crypto_ahash.c index d1bf68cb390d..30f78256c955 100644 --- 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 ahash_request *req) 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_engine *engine, void *breq) goto theend; } - rk_ahash_reg_init(areq); + rk_ahash_reg_init(areq, rkc); while (sg) { reinit_completion(&rkc->complete); -- 2.35.1