Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp562630rwb; Tue, 27 Sep 2022 01:08:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63awqRqdISpBNlxB5mEmyTcanhT8m5T5AXlZH7BIho8yEMzK0Kcj+AeIvNTWooa5jzn5ES X-Received: by 2002:a17:907:7245:b0:782:3389:e1fc with SMTP id ds5-20020a170907724500b007823389e1fcmr21581200ejc.735.1664266119449; Tue, 27 Sep 2022 01:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664266119; cv=none; d=google.com; s=arc-20160816; b=T74Zkq/4bXWje4ymwWG3LHz8l34wipw8Mnokvm0YMhd+DzQRQXrBm2/C11TT8UC2oV cuVOAGMKWYPog/8Ic2VwAo9Imm6MgWX0ENTbRl+N1pXb1k+Wx/6mnNVcd6vEy+7AqBRH SlCQf2YnvnpuUu8XQ7/OBSm1VKo2AMOgY5nNPHHI4k5RN6Rb0QVG30nUYIkbgV/r89vn J25wXdaqsqTiLiCvXMZtc2Rsca9MQp2u7OXwb3p2op+GSyJ4S6w9u3cuptoRcpkpvM0Q JdaPU4TB821uz55bR+fvCPR873lP11/nftYyuUmckzfqtlZmzFtp/iVRuaHVIaICVye9 944Q== 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=B/IuJWz0zLryA/0pNVEFtGNhg0MmSXIejycixWv11yuwirS40uwqf1I8nYCnn2JS8s ZV0tvI22p6t6V0dSlkDJSoHr1rTZU23VYy/PFRYo6Nj9Ma6fKfTU+V9WUOCBntt53mDq +pgZHOFvFFIrf2AHM5UjmEmXqx6/pc9cD5jo+JEOucJ96WWXtTjI/YWNwIhaYyDRywwc /alDG2qvnHAmO6dudlIebxitDnlLMZmJizm63NAqDnjNqQfq37nuTdci7RKyd/Fb3Eg2 SJlpCi7vZ6FeLG44v+M4W4Pjpsi1T5B4YQDZ0b1YP8f6Bpl1ujmha5y1rgbKUmVK54cn p2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=7lLd0LEw; 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 og20-20020a1709071dd400b00783d10996f7si495141ejc.606.2022.09.27.01.08.13; Tue, 27 Sep 2022 01:08:39 -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=7lLd0LEw; 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 S231580AbiI0IBp (ORCPT + 99 others); Tue, 27 Sep 2022 04:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbiI0IAn (ORCPT ); Tue, 27 Sep 2022 04:00:43 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D911BB14E3 for ; Tue, 27 Sep 2022 00:56:53 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id i203-20020a1c3bd4000000b003b3df9a5ecbso8909084wma.1 for ; Tue, 27 Sep 2022 00:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=/HcULCDUWUOb7zL9pkaT5teTJK7hgsOh6ToY9+UZMac=; b=7lLd0LEwj1X7XZMWENgGR2iUtmd3mQmo2CkvfLT1Mil4cjHHSmbIOAFJ01jDjX5pC2 80mHdhoD/49EcCspvFrffQgX7nO5s1eAmwz/zW1oF1+4qCyv+rqFmnXWNwY+BO387Gf4 c5YqFAiAl06up8ol/ZCBtqk+LeuQ3I0nJhxgKA9WL53Bm9r0qMcc6CUHnK46ySVDGmh/ WGD1wirGtNiXPQZH5euvBPGCiNBqOgq2uzwBFySI5vjSCVy1mLRT3xrOu/h1BiImqXTf YQluU1dzfcWu4077Henz279+fKNBb0/CL6eBoe/ZGy1dH9iJ722p5K8Gz95MwWulnpdv qydA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=/HcULCDUWUOb7zL9pkaT5teTJK7hgsOh6ToY9+UZMac=; b=3AFRNCejDBiAfx2DxU2enR/drdc3IwxJsljPem/YF8imW+MrOaiCjB8/UmOl7VTfA5 nAH1nX8GmtMhMSzH3mNi1fqKBleGsUeo6QSRr1g6yYDYKboUR8JAleWq3agpzhQod6ug 23u51oGNgp2eVF2D41P8mrGhRpUeaGO7k0uNDElC42vNvA/28X+NIRMr5eX/PeEBGi+L rEAd1kE8r5KEmD61Fim2SsJqZ6bjH6237wBmi7ms1X/VxcG7zsj5g5SZWRGPLdz+l8v3 I+4TIDxsR9q91+h7TsQHOKHP+pakcizuuK3cbbRDx4R98j1anysZArH93jC6t2+NrEb6 jg+w== X-Gm-Message-State: ACrzQf0EffzAC6KfFbYA10AXlz1LGKb7ffEixzyVXN0Y+sY3xGtCiyUF kfPgds/5uNq67wgIXE0qV4Qqtw== X-Received: by 2002:a7b:c051:0:b0:3a6:36fc:8429 with SMTP id u17-20020a7bc051000000b003a636fc8429mr1572126wmc.78.1664265368752; Tue, 27 Sep 2022 00:56:08 -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 x8-20020adfdcc8000000b0022afbd02c69sm1076654wrm.56.2022.09.27.00.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 00:56:08 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, ardb@kernel.org, davem@davemloft.net, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH v10 31/33] crypto: rockchip: rk_ahash_reg_init use crypto_info from parameter Date: Tue, 27 Sep 2022 07:55:09 +0000 Message-Id: <20220927075511.3147847-32-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220927075511.3147847-1-clabbe@baylibre.com> References: <20220927075511.3147847-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 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