Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2222129imw; Wed, 6 Jul 2022 02:09:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tczndIOKdfGAJViLx48bWQiUdoD81+0vg6FwBYJM5CpTyWCzgp/pCkaEBqRRl7YrCzC4RK X-Received: by 2002:a17:907:76b2:b0:726:d02f:dee with SMTP id jw18-20020a17090776b200b00726d02f0deemr37063329ejc.249.1657098572957; Wed, 06 Jul 2022 02:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098572; cv=none; d=google.com; s=arc-20160816; b=cEv7CvgDagyKecavpN37XJiM/1kszXP97OspJCWaDHUcyL4xDsQkJ2iiVUjR2flUr1 274pjJWuCR7cICvFRQLE/LoCiIo3X0YHav1y63KthuQylWaRE8PicQFJ81K8oLwocWVs nzLn7CzDfreWSNY3ss7YBV14UgNw0ktuJVdHijtypqx+iRTzfODuGAEpZ6/9/35OnTvc wxUblHRXB+Raei44dxjLHiay7tmIuDr/0/H5DtVhsDgItBmDSJ/eXckRuSIfIUhzJnb2 7bldxj/MBtXh3hSZ1phnnkU2aBTVaU2llxNJJzwEo8MCHGV8qrtUpAiu2TayvLDzgWpn xKKQ== 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=z10vTtQ4qHSJZ9nRrmQY5lLp9Bvyc0G2kDbemdDveLc=; b=NZZY9ggolCpSukxQUpQfa1BWHkjS+o8HVLYSFIz9dwpka0eL7b8Xf1RwJ/Y76SSNyW tcfOZ5XdXM7J0wPgB0oy0r81aCsg2B+ek0QaxZjw+LMSHDMgTmbUd7Wgwmq/KLYhTNvJ CQLzZ2CVY5d/EHzVLeoPoYjUICSy46DxCchS7e33k6rWrUPSNx4Qr2qaeOiqTtzwtrOD Jo9yEaJ1MuAGXODNFBoFIr0n4c2QPqSUwYtBFu8EWKPWOD3yMRaNF9wHGubKB7abesW3 hv1hwvM+nPbdoPi3kX3kXNUG6VW9kTCpSi7OeFKxwNpOih1miViL6gujwUuwBl1AXDTt iWAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=E5GE9YCm; 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 hc39-20020a17090716a700b0072a5c090821si17831699ejc.130.2022.07.06.02.09.07; Wed, 06 Jul 2022 02:09:32 -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=E5GE9YCm; 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 S232940AbiGFJHu (ORCPT + 99 others); Wed, 6 Jul 2022 05:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233010AbiGFJG4 (ORCPT ); Wed, 6 Jul 2022 05:06:56 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A433624F3B for ; Wed, 6 Jul 2022 02:05:11 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id a5so6366541wrx.12 for ; Wed, 06 Jul 2022 02:05:11 -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=z10vTtQ4qHSJZ9nRrmQY5lLp9Bvyc0G2kDbemdDveLc=; b=E5GE9YCmCMIhMO2D/gpbHRe1l3D7xDBrlxRw1T0NpHDSuJX2I0zJ01SA77X+Ypb95F IxH9341vzS6f9HRvGDZW1Pvfah1Ajs+GYMuuix6+XAER3HwBkC8VVVKn8re/11zSOLUY /PpGB+RRuIYMS+tnnb7gKAgXTpXUqslS3pUYbx55O7iqFoFMR5yXFZX4/XHD1KneRk27 SbYZG0c2XxXOMsPSLg0CkQOe2LamirBkkH4ropL6mvCgJ/uXVy57YtoLlOl2NbUTROU7 xs6SXcvpWeY8HlpE/xnWr7NDJiJTiGnStnPsoRqaj2Qc0zZ5J+/gJORvYosCb/3sgoWn UDWg== 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=z10vTtQ4qHSJZ9nRrmQY5lLp9Bvyc0G2kDbemdDveLc=; b=LWfUw6UdDvKsT2nS9WPD/208R3TJJ8R7bEkVOzyqSLwSQECqiwazY8rRaKi3Ptx/ju VTdxlQMMJLoTwkCUlmpQYTZfqIbx0ux66ZWZ/JVeuZGt5PoHQvDRCiKKTsDJJegyEOeE dR/OI75fDdT5kedwRYhxdKnEee5EQlkbrvomGVcBimTcQO5dFI1YzqLf2zXVpdE32s8a PRtJG9v2WacOrhtMBB3smgjvCD9sT5HmOaqlqTgqQyANnUtBdXHFGlxtHZpj1JbkjFiB huh10cNc7upA0K6CnKlbSx/Xtcf5ZXtZMlEdH/C8Z3PwFvvYb3q2aFggQPxmhlkWyO9p c5cQ== X-Gm-Message-State: AJIora9qsPDZS+Pc3CZOvFficPjGfaOoyETsLfmS0/KqEOBRw3viae1H SOHBLCg9KszLgh2bXgnZtL5RiA== X-Received: by 2002:a05:6000:1243:b0:21d:6123:7a80 with SMTP id j3-20020a056000124300b0021d61237a80mr20483339wrx.354.1657098305981; 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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 02:05:05 -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 32/33] crypto: rockchip: permit to have more than one reset Date: Wed, 6 Jul 2022 09:04:11 +0000 Message-Id: <20220706090412.806101-33-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 The RK3399 has 3 resets, so the driver to handle multiple resets. This is done by using devm_reset_control_array_get_exclusive(). Signed-off-by: Corentin Labbe --- drivers/crypto/rockchip/rk3288_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c index 232dc625d6e5..d96f375423d5 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.c +++ b/drivers/crypto/rockchip/rk3288_crypto.c @@ -281,7 +281,7 @@ static int rk_crypto_probe(struct platform_device *pdev) return -EINVAL; } - crypto_info->rst = devm_reset_control_get(dev, "crypto-rst"); + crypto_info->rst = devm_reset_control_array_get_exclusive(dev); if (IS_ERR(crypto_info->rst)) { err = PTR_ERR(crypto_info->rst); goto err_crypto; -- 2.35.1