Received: by 2002:a05:6358:98a5:b0:11e:80f4:e92 with SMTP id q37csp24123rwa; Thu, 4 May 2023 13:48:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4llDZs+3RGFkHhwh52SP7+QW0QxcQ/NOwqwYEY1ncGuHXEGAIRx+xQx/6piuS2Y3Grc7t2 X-Received: by 2002:a05:6a21:2c8a:b0:ef:c5b6:b6ae with SMTP id ua10-20020a056a212c8a00b000efc5b6b6aemr3317541pzb.25.1683233323994; Thu, 04 May 2023 13:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683233323; cv=none; d=google.com; s=arc-20160816; b=SLS6Qnv3O/OcV+6l1Q7b6uYCsHZk38TO/qA20N+UrC+9xHSxzFcJ+WoyH4+HyErmEF n/qFXW8Nb2pF3jPOBJ443va8gxQLrTp0zeV+ZNj1oQm/HjfODRvCszbrwLPMqxLtgdnQ jOGdrRfdu0FOUFrnuNV3ciVbiDkz52s78bHATb7it/dRJTMb6XOXIt9B9/Fo/kD+oHeY NI3CSsbWOBhz2I3i4M9jJdz/nGtiIvH2btiF2clSxeGzJLNYhh3jRTrb92cXn4VczB9G aDpAMCxIZblLR3kjHiASY3uxzP7Kdnl7bTUEuQdhGywAndX7JQDdZBcvALf9DBqUbmWa imVg== 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=aNCL2SsFMtLF+woCjEjcgeWZ7S3strS2NHoSBj7cFSQ=; b=MWr1Yel/FYBPnyQWmYxgyAOLPeDiXmtTrPS6EWaJYaO1m5CTa0loWa7AtUlXrt30PJ LiXVpJdcK4VERmuXC3HdcWDrdEXAZvEHaqj6OG9ah6vFHCxeVqO2q2gkrc2O9SX6S6b/ uyn/GVF6pRqGrL7EYrwvQl8atRcPY+MR7GcHf3TkpwCRRZvrYFF1NdX3qTD2aVbr33Wo wkLpgX0NFFFTxMZ8od9Me8HKDnCqK+3gH7HAfmsO5LaQRQnStzmFSBRc/fv76KEYc73R 3S2p6HWfH131oYjvtfxmcwtdhrsnAQPm6ndJDu622Ftey2eqSQ01arPcTuaNu1i8a2NZ Sp8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RvDTFACj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a63330b000000b004f24be1c13csi265669pgz.117.2023.05.04.13.48.30; Thu, 04 May 2023 13:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@collabora.com header.s=mail header.b=RvDTFACj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbjEDUk3 (ORCPT + 99 others); Thu, 4 May 2023 16:40:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbjEDUjz (ORCPT ); Thu, 4 May 2023 16:39:55 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9D65FD7; Thu, 4 May 2023 13:34:45 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 276456605702; Thu, 4 May 2023 21:07:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683230831; bh=QY6rnLRfHC9dXg+8BbD6mqIP1zCqEQmwLS6ENTx+qfY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RvDTFACjzeBm2rFU3uAOCw0rcmWMiAd63/IZOt7IK0hz6Le+EGcutL7FByoUkeHs0 6CWhe6rEu6J7uOFsM1i8tw1CtSr/Y9suiwYkbSU/aufYh9mgIU0ShLaG6y/mwY0sTp Kk6Cddb4XkKWjnb7VCFU5HSAkZMlntS4niDuVptBabPCm1df1uswkR2zP7mywvidV6 a9TAl6Dx/jbxn4tlbRqJiZI8i1i1tFdTWfwnbGcoMFyCicJ8Dv1UjIfz+cTi+ti/b0 1DAuwK9hU2VN4rIgVmHhtL+IsAJXMTc7or2W3l3/KMVkkYN5lUUn4qHCtfZJYqkKnp jhl/+eKKSEqYQ== From: Cristian Ciocaltea To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Philipp Zabel , Sebastian Reichel , Shreeya Patel , Kever Yang , Finley Xiao , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 5/8] nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() Date: Thu, 4 May 2023 23:06:45 +0300 Message-Id: <20230504200648.1119866-6-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230504200648.1119866-1-cristian.ciocaltea@collabora.com> References: <20230504200648.1119866-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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-kernel@vger.kernel.org In preparation to support new Rockchip OTP memory devices having specific reset configurations, switch devm_reset_control_get() to devm_reset_control_array_get_exclusive(). Signed-off-by: Cristian Ciocaltea Tested-by: Vincent Legoll Reviewed-by: Heiko Stuebner --- drivers/nvmem/rockchip-otp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index b62e001f9116..439aea1f8874 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -263,7 +263,7 @@ static int rockchip_otp_probe(struct platform_device *pdev) if (ret) return ret; - otp->rst = devm_reset_control_get(dev, "phy"); + otp->rst = devm_reset_control_array_get_exclusive(dev); if (IS_ERR(otp->rst)) return PTR_ERR(otp->rst); -- 2.40.0