Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369441; b=AqoNp4B9A2+BNYww1VLgYc4csVeA3pTRZWZ1kqNOEsxV/KrifTFWyqjZRkYHTOS3CNUU dnU5Lt+LrxD8KXC657fO37GS78bZKYZA9aIGYafXDYAg3sKyhEOwo3WGw3LRks8ttk7zF Bo+N50hIxcQg+NNC0eFdLDeihn/iMAkL5AlR4LKUX3PiCTCq7a69IvhL9JmaXnKFLSQBi NoYsJC1QaZ7DyJz4QLlJBA24srKj+/WcmjekvVxEeWL/I7Fz7c7P7rYVP4tteCGtnVQba ogXS+8u0G1P1vIzuaB/iw9uOzsdm26Hoj840VCNqLxfYWD18ug9KHPFjP9xwOiRdSAQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369441; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:Organization:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=4Nxpc7KufTIPzltk/cXfET8JiYPSDSuNAcSsLWOngQM=; b=l5g6f6lY6V9TOzWbgM4EZE19PmHdGbkGNcs9FBkdZRI2F7fkTAz4lLHEnkiXdpwI0uXO Td/jE+G6ZtG3R9vK9+BdYRQVNylCpcOHsIeHsd+Phh7l3kHkoA2vfjTdtzUU2/GqML9UD jeCzbYh9NRyTmk+xKIwYh/RfMlEs+oSKMwgkVrpSDRzBWj3+otJIJBfXnsfu47wFzkohx ylj+Z8T1dYxSWBOMZJQ8aAucFQ37xKUlhKohGx8sRzJq+wnm1EawsNzwkonOY2IUhZXL0 XEB7I6DxNJnurhI9aVVjQXoSDQEm4akuWckxbdOCujophL/tDL23PFUO4iELZKJrJ0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=gwVUPoKu; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 267E4606A330; Fri, 4 Dec 2026 07:30:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 267E4606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=gwVUPoKu 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-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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