Message ID | 20230501084401.765169-6-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2558584vqo; Mon, 1 May 2023 01:46:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66P8Y5dWW2LAlPVmydJT2LXBGzBeYRCc9OZRLgTPiOG3310i2EBkPZx6EDCWT/P4PJzIRf X-Received: by 2002:a17:902:db09:b0:1a6:8405:f709 with SMTP id m9-20020a170902db0900b001a68405f709mr17148421plx.20.1682930772503; Mon, 01 May 2023 01:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682930772; cv=none; d=google.com; s=arc-20160816; b=P1A7l4gFCy3T7mPoIvX8hwDsXw8kYvsbnhyqJA0X92QfsV7CO1ULuJbOtcft9go3re ZmP/J1n8P/8Bcsn0XIdVlyG2fGttIfxTdXofbOrj+64bJjFAWr21IwtNt5RviqQSwOLY 2G5vWoQSRt554Rq56ujmjiIrvTzKOiot+DfQjVLQRxJbVvGjZEXuy5GR+S/aM+ltXCh7 Iss9OlFh2pi45pyxvpdd58IOqSpw00+OsxfDU4hKjrDb1srmB0NZ/DTUz91n7w624SIM Tjw507plrS//aRlWE6uJWfE8INvSuYB0UsmsFwT8WubDN5Ck5UAkumjzrzP7QAzPn7K/ bfdg== 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=7z/WzrPxMvN0Pfajrn8O27DHI26f7hs17jAw6CSqcNw=; b=cIlO6fZtat1mEznkPUaAo54dwfQvoZbEgyunGEVgrwulidiZFcTQTmt1GifdND+vrO OcPTfVggRmVHQChVnRgKV3s3HyPJ5qg547WgGesf5VJolGQsIIENPhG0ZFJRCLrggbQr IEhL5buzpATJ3tnTC9RCigmqD1VfD8F4D7H4BABiNcZV7SZRA9k3oX8C/NnLjLY4LXsb WFuOzcloj3gqtXPk5Ky+E69yfBWKoz5VAcwKpQbAlCJa/zcFPA86AUUOx/B6dOy04zHk hse2az7d7DAQeF2OQxwCEcqfN3xrDaw/uZXgMg6FbMVk4RjQ6mIMJEte1MlSe+iGxnA4 oQZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VrbFGRRy; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170902d48b00b001a97c1afb8asi19279382plg.622.2023.05.01.01.45.58; Mon, 01 May 2023 01:46: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=@collabora.com header.s=mail header.b=VrbFGRRy; 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 S232327AbjEAIog (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Mon, 1 May 2023 04:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbjEAIoa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 1 May 2023 04:44:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36734171B; Mon, 1 May 2023 01:44:21 -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 C979E660316A; Mon, 1 May 2023 09:44:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682930660; bh=x9XZQ3uvxTsAewM1Yl0ycP8UKF79G7B1mNgN7RoKnIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VrbFGRRyDt+77pqbitqtY1sN76z1tYvVESWYrVbjH/7Jr48ltiHzsIPYxDXBHw4Za Dj60ePX2+kI39jGyjvshxIG18+Rml62ysPMU+2iWLUvjLne7oLCHP8kKmd7DCTzFS+ MGcHkgjcqPHrtvI+oN39DO/dbHbUbnUNoYs4FrETcewBVab0pC5MM9sB3vb2/ZsRnZ yCdqMPJTUhdMXoz3grpOe/zIGGrAHM8M/WsAkWkWzLiyJafZZuEQAhCyLA398MHZda PQQrsEbTkxxvC3jbWm+Ov1VrrgFtF8XZ4rF7cRUlR4TqQBXdGvz5ofMgWHZT7Gpdr/ LxFb7sI1MAS7w== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiko Stuebner <heiko@sntech.de>, Philipp Zabel <p.zabel@pengutronix.de>, Sebastian Reichel <sebastian.reichel@collabora.com>, Shreeya Patel <shreeya.patel@collabora.com>, Kever Yang <kever.yang@rock-chips.com>, Finley Xiao <finley.xiao@rock-chips.com> 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 5/8] nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() Date: Mon, 1 May 2023 11:43:57 +0300 Message-Id: <20230501084401.765169-6-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230501084401.765169-1-cristian.ciocaltea@collabora.com> References: <20230501084401.765169-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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764680817724403321?= X-GMAIL-MSGID: =?utf-8?q?1764680817724403321?= |
Series |
Add RK3588 OTP memory support
|
|
Commit Message
Cristian Ciocaltea
May 1, 2023, 8:43 a.m. UTC
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 <cristian.ciocaltea@collabora.com>
---
drivers/nvmem/rockchip-otp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Am Montag, 1. Mai 2023, 10:43:57 CEST schrieb 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 <cristian.ciocaltea@collabora.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index e308dd3b4eb1..b74d98f82ae5 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);