From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C35CA606A32C for ; Fri, 4 Dec 2026 07:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=S8S1KGZM; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=gwVUPoKu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=4Nxpc7KufTIPzltk/cXfET8JiYPSDSuNAcSsLWOngQM=; b=S8S1KGZMttGW1p 1D0a0KklZsoTbC2UKnPexZ9DHlXr76eNH9iZxExK5ahSp0LfdFBg/Rh+Tiki+5ab7d/N0J+5EKxl9 B7S8wL87GmnwvGP3xbQWFpha4gZ73tDcns6cHRGgD19zexgJzegEYXEOkCk+dGOF65AU0u3K2n84a 4dRvB18Qo4AMmZIgLbYeTyfMSCGZs1Ti8yHoyXC6I61JT6RLVA3SXnIA0QCcRy7Z7AKrLerm1h5s2 5GqcGsuLO7iORF2fO7DVVPisD/SZ+l+x50i1C1QcCfAfxOyfyoUNhFwtDra8BI/kpMVtxvBoLvzHX ThDVf9pwFdb0LeKp2RSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNkj-0000000GwnL-0p9C; Fri, 04 Dec 2026 07:30:45 +0000 Received: from smtpout-02.galae.net ([185.246.84.56]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZNkf-0000000GwjO-2avK for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 07:30:43 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 488621A1946; Fri, 4 Dec 2026 07:30:37 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 1A8EF607FC; Fri, 4 Dec 2026 07:30:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7A2F111EA1904; Fri, 04 Dec 2026 08:30:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796369435; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=4Nxpc7KufTIPzltk/cXfET8JiYPSDSuNAcSsLWOngQM=; b=gwVUPoKuQjxXAJ0tDziVSqhBbd1PrlP90LU36prikHYCouGo0XiY9S3Ihbc3kX9x+mGse2 5ELD8TNVnITPGW9C8yP2gwf1JfEtRtErotKz3d8j7WD/1oOSLj0lxSU37ehoRvb5reTtGA 6R8XTBlu1LmZzqkFWu36osN18WuJ6M2LHwpizqIVtKCrha7ypHDpqfXtutuYXod5znITht e/GrnfXNxs9IsNVIrQDnwM/Z6XAHE+cMv6pCze2B3mXAjxcGNml94GnZGcoeTLNsYMlz14 HHZWpYnY8k/DZ3pP5/WKzd0gEFH8HbBQkDc2mp6WjloZ6FBVkCdTv3AgIOeuXg== Message-ID: <99e1a252-031d-4d2f-b21f-801e14a0839f@bootlin.com> Date: Fri, 4 Dec 2026 08:30:29 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 07/13] reset: add Synaptics SL2610 reset controller support To: Philipp Zabel , Jisheng Zhang Cc: Rob Herring , Conor Dooley , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Rutland , Sebastian Hesselbarth , Stephen Boyd , Brian Masney , Jerome Brunet , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org References: <20261130170352.12853-1-jszhang@kernel.org> <20261130170352.12853-8-jszhang@kernel.org> <28907f7771b114d200baca6dec48d171fe54e0cf.camel@pengutronix.de> From: Richard GENOUD Content-Language: en-US, fr Organization: Bootlin In-Reply-To: <28907f7771b114d200baca6dec48d171fe54e0cf.camel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_233041_830602_E845E55B X-CRM114-Status: GOOD ( 19.99 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Le 03/12/2026 à 16:11, Philipp Zabel a écrit : > On Do, 2026-12-03 at 18:57 +0800, Jisheng Zhang wrote: >> On Thu, Dec 03, 2026 at 10:29:02AM +0000, Richard GENOUD wrote: >>> Hi Jisheng, >>> >>> Le 30/11/2026 à 18:03, Jisheng Zhang a écrit : >>>> Support the SoC and MCU reset controls exposed by the SL2610 system >>>> controllers. Match the MFD-created platform devices, use the parent >>>> syscon regmap and register each reset provider against the parent DT node. >>>> >>>> Handle both pulse resets and sticky resets with assert/deassert controls. >>>> >>>> Signed-off-by: Jisheng Zhang >>>> --- >>>> drivers/reset/Kconfig | 13 ++ >>>> drivers/reset/Makefile | 1 + >>>> drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++ >>>> 3 files changed, 238 insertions(+) >>>> create mode 100644 drivers/reset/reset-sl2610.c >>>> >>>> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig >>>> index eda9c698a95f..981d3ec29595 100644 >>>> --- a/drivers/reset/Kconfig >>>> +++ b/drivers/reset/Kconfig >>>> @@ -358,6 +358,19 @@ config RESET_SUNXI >>>> help >>>> This enables the reset driver for Allwinner SoCs. >>>> +config RESET_SL2610 >>>> + tristate "Synaptics SL2610 Reset Driver" >>>> + depends on ARCH_BERLIN || COMPILE_TEST >>>> + depends on OF && HAS_IOMEM >>>> + depends on MFD_SL2610_SYSCON >>>> + help >>>> + Support the reset controllers in the SoC and MCU system control >>>> + blocks of Synaptics SL2610 SoCs. Both pulse and sticky reset lines >>>> + are supported. >>>> + >>>> + To compile this driver as a module, choose M here. The module will >>>> + be called reset-sl2610. >>>> + >>>> config RESET_TENSTORRENT_ATLANTIS >>>> tristate "Tenstorrent atlantis reset driver" >>>> depends on ARCH_TENSTORRENT || COMPILE_TEST >>>> diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile >>>> index 489fafd6bbe3..d28276a4f2ea 100644 >>>> --- a/drivers/reset/Makefile >>>> +++ b/drivers/reset/Makefile >>>> @@ -42,6 +42,7 @@ obj-$(CONFIG_RESET_SCMI) += reset-scmi.o >>>> obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o >>>> obj-$(CONFIG_RESET_SKY1) += reset-sky1.o >>>> obj-$(CONFIG_RESET_SKY1_AUDSS) += reset-sky1-audss.o >>>> +obj-$(CONFIG_RESET_SL2610) += reset-sl2610.o >>>> obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o >>>> obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o >>>> obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o >>>> diff --git a/drivers/reset/reset-sl2610.c b/drivers/reset/reset-sl2610.c >>>> new file mode 100644 >>>> index 000000000000..dc55a05d29d8 >>>> --- /dev/null >>>> +++ b/drivers/reset/reset-sl2610.c >>>> @@ -0,0 +1,224 @@ >>>> +// SPDX-License-Identifier: GPL-2.0 >>>> +/* >>>> + * Copyright (C) 2026 Synaptics Incorporated >>>> + * >>>> + * Synaptics SL2610 reset driver >>>> + * >>>> + * Author: Jisheng Zhang >>>> + */ >>>> + >>> >>> [...] >>> >>>> + >>>> +static int sl2610_reset_assert(struct reset_controller_dev *rcdev, >>>> + unsigned long id) >>>> +{ >>>> + struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev); >>>> + const struct sl2610_reset_cfg *cfg = &priv->cfgs[id]; >>>> + >>>> + if (!cfg->sticky) >>>> + return -ENOTSUPP; >>> >>> Prefer EOPNOTSUPP over ENOTSUPP >> >> The reset core use ENOTSUPP, so I follow its style. >> >> Hi Philipp, >> >> which do you prefer? > > I'd prefer ENOTSUPP for consistency. > > I'm not against transitioning to EOPNOTSUPP, but that should also > include the reset core, the reset-simple and reset-ti-syscon drivers, > and all callers that depend on the specific error code, such as i2c- > rcar and stmmac. Indeed, I'm a big fan of consistency too. But in this case, may I suggest to add to a note in the cover letter saying that ENOTSUPP triggers a checkpatch warning, but that it's kept like that for consistency? regards, Richard