Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4437928rwd; Sun, 11 Jun 2023 07:33:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ523HKDygVthI1tTKRNhAtxaL9kCCNWqJM+6eW4/MPeOXnXmx6CTUhjAEyUIiuIBJPqWmqI X-Received: by 2002:a05:6a20:96cf:b0:10f:1e5d:9045 with SMTP id hq15-20020a056a2096cf00b0010f1e5d9045mr6077346pzc.45.1686493992310; Sun, 11 Jun 2023 07:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686493992; cv=none; d=google.com; s=arc-20160816; b=ChSYtdv+gvBrWBhpxMVtktk+ZxnqYjY/5BzxWCuJeCMVREk4RUKAiueJuY/liHUgKc 2V22m6A5YH5ksqncZ99Ko+l9iX2NtffBMyIF/ix9OQDoTc+hx9inhrczg+Vr27NHDJ3V 3tzOfTwS9PU7KXODMy8YpPESPb57qll3148fPmVcQQIW9v0glp/y9HP2IDK9ub9P4paw IgjE6OqZhH31pUtah/BzTs43Rta0ns+RSRV25k4W14vXWSBuitZHnDRH9XWnqnSl8Edu 3Pr4WsdcnWHMHHkr5CQhr/wW0uhAU+Mgbw1xjlWmHVbpGci8oiEQAl4L6nU3ceE6U4g7 rqjg== 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=rr9hRbhtZaRBUtrRcpiFIG9+NtiO1S0ZOMsMBmSECJw=; b=eLRTZ3FhoXXFqHWS17YhTC9F+1WDjACQq9qNjNpc1Ri7pXc6MJTZ8KJceexermPUVI NpGm2RvkqoCRsS5BIvNOWZrJE3kpwzFuSS20MqkGtgKdgtMu41GotmMH1qRJN+P0Irsq pCn5jrgv6MZMonTNr2GnZdAkkGzh87yXce0pvmZHbrE+18++6qmVJap29r79EdPVgEcx 24iwmjoLlily9VSzUdMKjtVFFWCbJtynRj+VeqahoJj51rnp5sPtHkvLOawpexcyj+GU FrTccDyF9he1di6n+h9HbMp3w0sbw2pptugHtGRWkG/D4jCBwPIog57SCjLPUv+DWFR7 R2kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u7GYX1vp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a621d05000000b0064d5aab3ec5si3214896pfd.156.2023.06.11.07.32.59; Sun, 11 Jun 2023 07:33:12 -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=@linaro.org header.s=google header.b=u7GYX1vp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233740AbjFKOFC (ORCPT + 99 others); Sun, 11 Jun 2023 10:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233724AbjFKOE2 (ORCPT ); Sun, 11 Jun 2023 10:04:28 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC240173B for ; Sun, 11 Jun 2023 07:03:59 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f739ec88b2so24329335e9.1 for ; Sun, 11 Jun 2023 07:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686492238; x=1689084238; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rr9hRbhtZaRBUtrRcpiFIG9+NtiO1S0ZOMsMBmSECJw=; b=u7GYX1vpNQ9ffz1DcTwiFx4UzrOQwy/c1ndXFtnxEJoWlK6YXeXqyHq0S2JYcyx+Eu DkVxa36savku/3hxeUyd2Z/YhqbnXohpr6sdWV6mWM41IfodLbveUuBP+VADHCZU1/zS j5Nigjt4ivjtSlmT73PqDGO7pdUEBzWpHK3D8OcaJTP0L1zONKroJoMmyCDzWtN5xTaJ esCB4vVAX1xvxSv12kz4NxuHMBTmpK7hkvWnL3neD7Dbcd4DVIsfUWLdRpfAnxmo5Fc7 2r/NlWIb5au6XLQ2pyJDQZ4Y1rqpRDdXyTTrJjj1rYMBI88/zvaYlXb7WfhSz6RS79Xj ZfiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686492238; x=1689084238; 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:message-id:reply-to; bh=rr9hRbhtZaRBUtrRcpiFIG9+NtiO1S0ZOMsMBmSECJw=; b=dvOCQx6Wr6PZFJQSe3CgtdyVeG4lHLf4ABSPCXgojD7vyrXDY1oGV5Vsv03pHdgcBk 5iCGzAGOuiWnd2G6TvH5+QYzjKulL/7VkD7fKVxFAJ1MujLocYs0QkQ2BxA3THHAQQyI +UaTGHLsAqZHmT8L0rs4LZ4RPgUL1IybZdC8PTKdOn7QpJwqgD89AlH0ck4OlSM9pBwh wC2i5kZm3WEi9b/fXWHC4b47jiZ+CMxZaYpq61sJjVFmD/YIAa5TU7dEzZlhfGt4OvQk N5wOvUhhjUih7zfgoD9d2mv6EKh6RqnBRILno14G7Eif8dp+pUMObEvhVVYRv3xkCYVm nfTA== X-Gm-Message-State: AC+VfDxxgaxAvxt3tr3Wj7yMLq3QtbKUcQvcyhrybUk5DofVMLUmA/PZ n78PBbWzGodGL7vjcROa+f3GLR5tL3k2Hed6QbY= X-Received: by 2002:a05:600c:3785:b0:3f4:2328:b5c2 with SMTP id o5-20020a05600c378500b003f42328b5c2mr4267361wmr.35.1686492238271; Sun, 11 Jun 2023 07:03:58 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id h17-20020a05600c28d100b003f080b2f9f4sm8567222wmd.27.2023.06.11.07.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 07:03:57 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Cristian Ciocaltea , Vincent Legoll , Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 11/26] nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() Date: Sun, 11 Jun 2023 15:03:15 +0100 Message-Id: <20230611140330.154222-12-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230611140330.154222-1-srinivas.kandagatla@linaro.org> References: <20230611140330.154222-1-srinivas.kandagatla@linaro.org> 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Cristian Ciocaltea 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 Signed-off-by: Srinivas Kandagatla --- 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.25.1