Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2221086imw; Wed, 6 Jul 2022 02:08:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+EsapKRo7Nmf72Q51UbprYU9r49DsZ8z4HrTp+CMtKnbrwDMehCKx+cw5rkDUjveHWJvP X-Received: by 2002:aa7:c84a:0:b0:437:bc9c:af63 with SMTP id g10-20020aa7c84a000000b00437bc9caf63mr50716945edt.370.1657098503506; Wed, 06 Jul 2022 02:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098503; cv=none; d=google.com; s=arc-20160816; b=Ev3Yv2TC7PsrTWmvlMjnMq7dtSk4AL/v2WVgF/pf3Syn43wADsV3zgBpsc1txF0o3T g+rC61wvskx4hQL7cpodhdamv6FREI9Q+2cejiFNxr8zyFu9iHzQmY6Xt7wzVX4Wx2nJ ASvtnaSxSE2LVzayNAB56GoAOhZRstHL25oiF5elL0dcQ/ULA1JiSef3Rl6/bfdgWxn/ miXZlpBbjvlQyucSQc2tlbSqfnV4yApfMURMRDk8q52Gd9lVOMVpSIw8tFPueEqRzs0y GEFsTYaF7CltVWLU6DHK9aAsNQjmigdezao1hgsKzDUwfnmOMm5eA8RFghb9mZHUHoch cqcg== 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=0KerGvUzdejWLAwshDyy9ppWCWrJnFuYbHleK5z5lUU=; b=qcamP0/WwmFQErOzvQZSpyhmOTdMp7xdCE8opEg0bv0RnI4T1yeGdMET49jKSJ/Dot w3twdn5IUpjM8d9RJgOfLXkYwtecQfeO/ISf8L59yV29VOSvJN1rR4Sdp/85uOoekiXI DfixPw/W5XYGdev+X4qYwPifZ8A0YouSdOi+Roj/Gx5jHhbuLx+hVManeLkvJz7kPpoQ C5Zcw0UK7YPcp9Ivuu9d9SW7IcxPzwGztqFAnIrK5ZO3GmT6Fbj/Sc4pKyMZabvCS6t5 D8c3ALhulL7lLMZCI4MmON1IOhmqC6eMvE2ZtgOiniFeYj7Ozp4MXkeyOPoPAh8Wll5W 2WAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=cOcyzI19; 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 cq6-20020a056402220600b0043a6f623f9dsi7780272edb.376.2022.07.06.02.07.57; Wed, 06 Jul 2022 02:08:23 -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=cOcyzI19; 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 S232877AbiGFJG6 (ORCPT + 99 others); Wed, 6 Jul 2022 05:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232883AbiGFJGF (ORCPT ); Wed, 6 Jul 2022 05:06:05 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5873C24F23 for ; Wed, 6 Jul 2022 02:04:57 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 205-20020a1c02d6000000b003a03567d5e9so10752841wmc.1 for ; Wed, 06 Jul 2022 02:04:57 -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=0KerGvUzdejWLAwshDyy9ppWCWrJnFuYbHleK5z5lUU=; b=cOcyzI19J2bwcidkSWv6IYChVJ99SgUBngiNcjkB1r7bHy8FEb/EHmXmVgJy+39WrI 5blmGvmfl/D2NUpaj/q6rfywpUvhhuYaegNRmMdTMEAW83+GcS/q+MqGBx1YpCQOBsNg qBuyuXLVhgf4djHOFJbgV2qsK4Rr46EOxdkXQ2MT5ZQCGfTQHhafDZXyOSHxPEScxAyi AHAWtXQTG4qcg6cG1349R17HfqlHyjtUo/gpO2yxSxyWvKDfKJAGLqnjcxNgQoeTQYLC gjv9XDsUSccvRe6OCe8NqKOiYZLID5sJXebE6y85t7ZjV/f+m8Ytib19LC1BoziJ20nl NXGQ== 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=0KerGvUzdejWLAwshDyy9ppWCWrJnFuYbHleK5z5lUU=; b=BMkUP4vAGSGqvsTDz/OAbZepS9vs0nUW1WplinYf49zdZTLAna1YLlAqN6PQPOF/fq LooWHwHcB/TpdcAAE5OTrLCmX0qFnp+W+e3O7FXISNzi3BAikC29XgOoNDsIK7MaZjs8 ZOahBanEdUldt0xiBugNimV2+Uh2bghP75CslGADzD78wU3yAQLmzI0f7WJYIhRB1Cov lJwmtLb1cr1n+RromsFqJbWN3Dp1h882SvrE8loZe7V+0Da/gaQ0zm4Gq7ehBcz4D9PZ avZN+4sJ6gJs5O9ZR//mecaplfLIwpv78rpjJWTz8zmkZNm+Q/7J99VPODUJ8lg34dxU CmwQ== X-Gm-Message-State: AJIora8oto9rDhviyPhXqU12nC/ToC8Pzee6hsbvAbkcaKHfVQs6cqZA 78Rafn44RsLz0h7V/Mt0FOflbQ== X-Received: by 2002:a1c:720f:0:b0:3a0:2ac9:5231 with SMTP id n15-20020a1c720f000000b003a02ac95231mr41272448wmc.39.1657098296950; Wed, 06 Jul 2022 02:04:56 -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.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 02:04:56 -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 23/33] crypto: rockchip: use the rk_crypto_info given as parameter Date: Wed, 6 Jul 2022 09:04:02 +0000 Message-Id: <20220706090412.806101-24-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 Instead of using the crypto_info from TFM ctx, use the one given as parameter. Reviewed-by: John Keeping Signed-off-by: Corentin Labbe --- drivers/crypto/rockchip/rk3288_crypto_skcipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c index 6a1bea98fded..cf0dfb6029d8 100644 --- a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c +++ b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c @@ -254,7 +254,7 @@ static void rk_cipher_hw_init(struct rk_crypto_info *dev, struct skcipher_reques RK_CRYPTO_TDES_BYTESWAP_KEY | RK_CRYPTO_TDES_BYTESWAP_IV; CRYPTO_WRITE(dev, RK_CRYPTO_TDES_CTRL, rctx->mode); - memcpy_toio(ctx->dev->reg + RK_CRYPTO_TDES_KEY1_0, ctx->key, ctx->keylen); + memcpy_toio(dev->reg + RK_CRYPTO_TDES_KEY1_0, ctx->key, ctx->keylen); conf_reg = RK_CRYPTO_DESSEL; } else { rctx->mode |= RK_CRYPTO_AES_FIFO_MODE | @@ -266,7 +266,7 @@ static void rk_cipher_hw_init(struct rk_crypto_info *dev, struct skcipher_reques else if (ctx->keylen == AES_KEYSIZE_256) rctx->mode |= RK_CRYPTO_AES_256BIT_key; CRYPTO_WRITE(dev, RK_CRYPTO_AES_CTRL, rctx->mode); - memcpy_toio(ctx->dev->reg + RK_CRYPTO_AES_KEY_0, ctx->key, ctx->keylen); + memcpy_toio(dev->reg + RK_CRYPTO_AES_KEY_0, ctx->key, ctx->keylen); } conf_reg |= RK_CRYPTO_BYTESWAP_BTFIFO | RK_CRYPTO_BYTESWAP_BRFIFO; -- 2.35.1