From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796309808; b=VQg8+LrwAGTl61Jw/brqpoNcQuxKLMWTtXL/qRUxTCJoqWJKjVyLdK+JJHGtzeVd/FLg +HcDjUUDpYnubj0mQrkr52frpuImf9c4LPAzPKZa26iPISaCYgsH7xpHwXukaoLfbXp0J EeL+vWHn7CrTvh1uw1oQzHoBTwRtSabMKeIqf0D3afLSU+j0lCWpy67vhSPXrggT6WhFV 7DPS+wdROkLHMau51y3LBYeOX/jJEiEJP+Koq5/YhkatwsN/WPIIbKeR+jU+RocyJxXeK /SRBpt8VodSlOVGppV/LkwdVwQGN0JsaRv4TCCJn1D8bKrjO8/2kHF2XYtihsYVFEDw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796309808; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From:To:Cc: Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding: User-Agent:MIME-Version; bh=a5DFGvnSvFsKhSEh3h8JcXx7ieTLVaY+OINw5AsQuqw=; b=IEZsUaRS4F/1Mej/oY+inpzbeQJ9NO/Vp6cQIcIpAIMYLNTWtnMK1fYRGAwIpucYbXwc hP2g66Q9nt6EjuB/f0cYHZT4uLaSmLY9xMWNesJmq0j/f/wwj8eVCIxaTb6Ca7m5W5Cd0 m6ge7rCs6HmpNwuaef26ljloAGG5iB20jbfdIH5eWcg7UvTouta509A4Li2F9OJsBNu6b thXF+GvNR6BpdKvGUwMGkGD9JJJEVp+MKL6KG15VsWWJTuHMp1/2kkkROQD4mFmvRdr2U JWgN2qKD1tGbxakI1Exf1ZN8EiPPNksfLXyXNX0Rs1VFud6P9v6xoWSGON1SogtXhvQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=Gdmy6HJK; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (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 7A741606A322; Thu, 3 Dec 2026 14:56:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7A741606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=Gdmy6HJK Received: from [IPv6:2a0a:edc0:0:900:1d::4e] (lupine.office.stw.pengutronix.de [IPv6:2a0a:edc0:0:900:1d::4e]) (Authenticated sender: pza@pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id C67E8201923; Thu, 03 Dec 2026 15:56:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796309800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5DFGvnSvFsKhSEh3h8JcXx7ieTLVaY+OINw5AsQuqw=; b=Gdmy6HJK+9yKsAucvpLMLOiOti8hEsqXFK+MKxYBJj92LKxGVGoZabh18zXMeccJ/gJKqp kB8Xghexm/008y/sZfwAG326+Q+k1g2KM1u5AM6+y02eTxM+qDR9MSdoX+lmzYhwPN1/oI Wm7Fjh8qcdhMH34agOTU9SagCf1mHmuYkUiA/ccchTQoBlCKakXQd7667pCqTQvldjhTm2 BR6SSYIvy5thgHJWLv7A1VALk+atQgdOsvHTbawcKk2QMd6oaDKFMepBtPPK9BEGSqHzAH yJH0f3qD/wijhGis885TUugzUUKh4iVtZUqI9AvviKysUpS9V3gaZrYmgpIqQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796309800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5DFGvnSvFsKhSEh3h8JcXx7ieTLVaY+OINw5AsQuqw=; b=QVMu3CkLllTiFb2Qf+wITTaufISOBWZS9t3mzupAG0KxBTHe+SfVb+xLNre83/AUXxbo53 3+CrjOTclAWeY7jEiKgLm9p4hIaKJV4+d7Vfc8PTDkwL85QaSD78lx21h8uKet0NjcPna1 pxsCHMOe9N8d7ssVYvC87ofzPRquvos+Sgwwh6iJu9fQoyfejD2Fjqp5PQfZXFPbA3dvHg xsZqoUjVYlFmjhGXL4eONpCpiNr1OTbhJ7vI/pZ8HS5clJZJdBIV3QgsbquOGTozN1Rz2W n4BchH10NLwAlXVa0eYyJidoaFEHfYFET8+m61Oq+Qy6nYf23bY8WuZQ/7qyfg== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796309800; a=rsa-sha256; cv=none; b=MZFnmNEblmMRl2lJOXGU4BpJs/LzlDOWcGAR87AUYvG2vL1wwTzCqNhjr/KHaQLS8R5Vq1 VBZsEQM7g8dSsLvpLoZagiCYOOqGZXZh+dlSqocjBchlMKTJgIlgIrrJXW8LSBPu86z9ZN BINQGyjT7YygUtvy1WR91JMUNC2KjzmzIY8P2+3ZckzweIYFfdVtj1Yipp9ULh4J5cG46I IAU2oO0xKb4YQP+DyBK2kp2B4YmMu12BZbybr5SRF82+1EHzcXL5L3AuwLK3foy0cog9hP G6ba86QpLszFitKv9VLd7hsFlKuEK8JUHwjM2fAcZmt8UzmvptfHV2Z7ITvZ2A== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pza@pengutronix.de smtp.mailfrom=p.zabel@pengutronix.de Message-ID: Subject: Re: [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver From: Philipp Zabel To: Jerome Brunet Cc: Alex Elder , sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 03 Dec 2026 15:56:40 +0100 In-Reply-To: <179630588443.3767986.11954138491151588195.b4-reply@b4> References: <20261201160810.2422466-1-elder@riscstar.com> <20261201160810.2422466-4-elder@riscstar.com> <177dec54772e01a5ee48feaf27fc600f7fd4708d.camel@pengutronix.de> <179630588443.3767986.11954138491151588195.b4-reply@b4> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Do, 2026-12-03 at 14:51 +0100, Jerome Brunet wrote: > On 2026-12-01 18:11:39+01:00, Philipp Zabel wrote: > > On Di, 2026-12-01 at 10:08 -0600, Alex Elder wrote: > >=20 > > > Define a new auxiliary device driver that manages resets implemented > > > by the Toshiba TC9564 SoC. The TC9564 clock driver creates the reset > > > device, which will bind to this driver. > > >=20 > > > The reset controller uses two registers to control a set of 13 resets > > > that can be asserted or deasserted. Only a subset of the resets can > > > currently be managed. The I2C and PCIE resets treated as CRITICAL, > > > meaning their state should never change (and any attempt to do so > > > results in a warning). > > >=20 > > > The MMIO region containing the two control registers is mapped by > > > the clock controller driver, and passed via the auxiliary device's > > > platform data. > > >=20 > > > The reset driver should normally be present whenever the TC9564 clock > > > driver is enabled, so have the COMMON_CLK_TC9564 config option *imply= * > > > the reset driver's config option, RESET_TC9564. > > >=20 > > > Co-developed-by: Daniel Thompson > > > Signed-off-by: Daniel Thompson > > > Signed-off-by: Alex Elder > > > --- > > > v4: - This is a new patch containing a new auxiliary driver for the > > > reset device. This code was previously included in the clock > > > driver. > > > - Checking for attempts to update "critical" resets is no longer > > > done at assert/deassert time. Instead, the reset controller > > > defines a new fwnode_xlate callback to check it at "get" time. > > > - The spinlock used to wrap read/modify/write updates to the > > > reset control registers is now handled by guard(). > > >=20 > > > MAINTAINERS | 1 + > > > drivers/clk/Kconfig | 1 + > > > drivers/reset/Kconfig | 7 ++ > > > drivers/reset/Makefile | 1 + > > > drivers/reset/reset-tc9564.c | 190 +++++++++++++++++++++++++++++++++= ++ > > > 5 files changed, 200 insertions(+) > > > create mode 100644 drivers/reset/reset-tc9564.c > > >=20 > > > diff --git a/MAINTAINERS b/MAINTAINERS > > > index aa52ede9a1aa3..8fe319f72eace 100644 > > > --- a/MAINTAINERS > > > +++ b/MAINTAINERS > > > @@ -28744,6 +28744,7 @@ M: Lorenzo Bianconi > > > M: Alex Elder > > > M: Daniel Thompson > > > S: Maintained > > > +F: drivers/reset/reset-tc9564.c > > > F: include/dt-bindings/reset/toshiba,tc9564.h > > > =20 > > > TOSHIBA WMI HOTKEYS DRIVER > > > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > > > index a3d89c55f17a5..c78c5a817adec 100644 > > > --- a/drivers/clk/Kconfig > > > +++ b/drivers/clk/Kconfig > > > @@ -187,6 +187,7 @@ config COMMON_CLK_CDCE706 > > > =20 > > > config COMMON_CLK_TC9564 > > > tristate "Toshiba TC9564 clock support" > > > + imply RESET_TC9564 > >=20 > > I'd make RESET_TC9564 default COMMON_CLK_TC9564 instead. >=20 > That was my suggestion Philipp. Both are Ok Kconfig wise > The idea with imply is both reference are on single side > Both Kconfig and driver string are on the clock side. >=20 > With default, the Kconfig ref in in reset while aux driver > reference is still in clock. It feels a little less neat to me If you're fine with this, I won't object. I just got triggered by the optics of a "reset:" patch touching drivers/clk/Kconfig. Because of the shared dependency on patch 1, I expect this patch to go through the clock tree anyway. > The reset needs to select the AUX BUS though Agreed. regards Philipp