Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp477464pxb; Mon, 25 Apr 2022 14:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyes5BeVMG34GxU2xBIczlobW3i/l6fVa9CiXBzxt/h/TeJ/9aKVPDSXECTcwZsYzdOUte4 X-Received: by 2002:a17:907:62a9:b0:6da:7953:4df0 with SMTP id nd41-20020a17090762a900b006da79534df0mr18398188ejc.316.1650921537525; Mon, 25 Apr 2022 14:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650921537; cv=none; d=google.com; s=arc-20160816; b=QXfRmnhej1dD7qiiq7unMLNp8fE8pGjJ/m4LpGRRxenVEfD3ALAffacLwUecxn+hfh OIE1GiuG03QwpXrjK3OfE2RqO88DWIaXiannk9UKi3KEJVrIY0aj1rMNqIFdaHQWxSts Ph79H8KKToprdfWOPskiFj6ZE6rntTHXu2oilu3ZrcitjT2Iq5WmhFgINx8XnSp1mR+s F75DHbhGZkksKn+HNv8BmfeTBJ1Jnfv9YTRTHXLU4FOqKFghwTKHcAxM4x3TnCOuVHF2 DdI0LvZkkeEUDRic6dJyBm3Ws5/WEk+dHbtsCTXPC1LC1wE7v9gdTjFNFrNdhcHEeHer 9RFg== 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=JBfzxCMFwSqtUUAKgLYX1NAdCBaYrQJEwA5Wp5fjHpE=; b=cYt+Jj8tv2c3QKHTl2U/uH6HNWfiKvwdqfFGXVvc9qktRc7HD8UNPUHjpgIyzEgxkw mlOhw7DOQnysf3OA1dLEXPhFmWs1TGw2ig7yMBtQvmqnNYu/4ZjzZAN24ff2fvVDdeoV 6BFi6QTnmWa9Kano3/x/jHgMPlK+xKHZmMH79meiapXHDF03oeDjUFe5SEshRu2vv+4b Fpwxt/StkrTsaKcbYdp+SnBAr+0cxMFli16eo23WHn7SCiFOc3PdnDczDCPNFB/nWekh OPd2R7+68yQEsd/RpdOJsf7E+4wdHPSVD7oCfSKpcyQy/IQSgB6zckJFlCzvYuTXfbXe AiKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Z1sd3HVL; 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 er27-20020a056402449b00b00425d40720f1si5836822edb.156.2022.04.25.14.18.29; Mon, 25 Apr 2022 14:18:57 -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=Z1sd3HVL; 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 S245286AbiDYU1W (ORCPT + 99 others); Mon, 25 Apr 2022 16:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245386AbiDYU0o (ORCPT ); Mon, 25 Apr 2022 16:26:44 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92EA61331B1 for ; Mon, 25 Apr 2022 13:22:09 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id t6so19044510wra.4 for ; Mon, 25 Apr 2022 13:22:09 -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=JBfzxCMFwSqtUUAKgLYX1NAdCBaYrQJEwA5Wp5fjHpE=; b=Z1sd3HVLsayY8MumfB1wqk+G5Kp3bdjZm0cqTrmrLPFHjZGYSNcrtnWvywBiPAmSn2 04TiThXfxwHVCG3GNw7Jxw77NnGXa4yLERWXHMkEQPtX84Ag7eoITDX6/Xd8vwdUDZyQ w5zHTd7q0EhgefgJ1inIYexOMbbbX4sYzmNkhVOn8zuTbnAL7jHg3nzlDi5b4xo9xZNI J4GQSYy0zC/VIitJzE0JnS9cHizc/l0tmuDZ9tvDPSthUN8htS08fI4iXq/lpvWHZ3yO 9bcJtW00geKWrH5VJFQj0RtMuzUp+L/udWp6Y7Sutz+PijghwxtQDWHc8MZ8re5p6z9w eoHQ== 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=JBfzxCMFwSqtUUAKgLYX1NAdCBaYrQJEwA5Wp5fjHpE=; b=pQ68QFemttcBMXcAc9x/FqXQSXKwaFI4rXnPN83DyE0An79qrD5P0SkA0qy39EJXrm IDBlZ3oNeqbQkTzsPusJ0tXmFDaB2DAl/HHMvISsSyVhuJYCck15UGuU6ujub533b63G CJsOdLxgbmPQuKQ+Ghru78GSh0foPjYST+eh38JCIdjgTQ/foezCAwYqdgwZtqgTv7hH 7kVNnNylsfzg7SvZUuCrCtuJoha715+7i9vEmeAC46oljP2l6y4HotHiYJEnv4+oZkHw Ep+IE3PwjUhFecO4e6Iy+LFJepgRAvsIFtqbth9Qeqggg3v6DBsABwZgP8s7365ApfNg 98nw== X-Gm-Message-State: AOAM533tzEYaFESIs9LFA/MjHkZMHVGNpRMLMry9+9/AIIY4I09RCl0U A82pbznl0hMIRP7K4gbbycj/2w== X-Received: by 2002:a05:6000:54e:b0:20a:d9d2:e6b2 with SMTP id b14-20020a056000054e00b0020ad9d2e6b2mr6361745wrf.178.1650918118290; Mon, 25 Apr 2022 13:21:58 -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 p3-20020a5d59a3000000b0020a9132d1fbsm11101003wrr.37.2022.04.25.13.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 13:21:57 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH v6 32/33] crypto: rockchip: permit to have more than one reset Date: Mon, 25 Apr 2022 20:21:18 +0000 Message-Id: <20220425202119.3566743-33-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425202119.3566743-1-clabbe@baylibre.com> References: <20220425202119.3566743-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 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 d6d78b8af57c..9ba9b9e433c4 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.c +++ b/drivers/crypto/rockchip/rk3288_crypto.c @@ -276,7 +276,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