From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796314714; b=Zc1lm96aLOTzIa73fj1YqpS8zVcVFT4X2u4YHvI75gsyjBu0FBTGWkt+CfuklBzyXEnn m4CV3SjlcfxV4IcBRzBHvkw0J/3fqJFQug35b3FUqBZQbdU2ced0fjmrbGmkxpoNkjZw1 WWeTx9LhINpkrR78uHQGenh/NfuKKjtovoK+OhVG1AMURT83e/zMSRKnM974xhJVw6YUz YFuKNCPbVRk4tf4Q7KLWUoELLkoihpaui6621v9aJo0V2p8TxW2/ST2DjhNPMWU5DVrFY lFrAzUHVO523Pc/5Wt+In3Oj9hYAsPq25CLW/WNzqTuMsL1BLrt3VsgRMjfyxnw0KcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796314714; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:To: Cc:In-Reply-To:References:Date:Message-Id:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=8nOF/NHEW4PLxUnnBWFr5OweSVG320SVnWlusxDqalc=; b=KNj8BzoQRGnYCHiukRHIggvW4Wi+Rafn2S+f16CC25vpaOgf0AhG6bU4qXJZ+gh2l4c1 r3LNrSU1sUoxcfL+nrTZ9CtZ7ZKZjYD5NM80JC5BMfA6X3ijw0M51cLTaapJff7U7lgLN Zlw1QuPOaPucoFKTlSVAB5KL7xPSKvfUanHXnNsbJfzMsczNFVmj5MdeiYGn9tp1FdglN kCRX+gU37tin7LjkGAa/OWWtAXDy2bYoTbs1aEPqzLMy7GwtKiPssUDAsrn7VWs4y8poR VwwcVEfPhaXdNmCe20zUC1Vl2THj7PCDmtX7DnMdOOtuLpxstRAgSSicC2o6oTYaMaA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=IYegAPEM; arc=none smtp.remote-ip=209.85.218.49 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33B38606A330 for ; Thu, 3 Dec 2026 16:18:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 33B38606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=IYegAPEM Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-c525912ac21so8507066b.0 for ; Thu, 03 Dec 2026 08:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796314712; x=1796919512; darn=vger.kernel.org; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=8nOF/NHEW4PLxUnnBWFr5OweSVG320SVnWlusxDqalc=; b=IYegAPEMgqBpHJswwu4++uTTO3kFuVUfCORDKyzq9exbA4RGq06avY5Ga12vxGKh0t MN1hYRb+VasO6vxZLkP41wO1BmLBAL7YWDwbOwOPX5UUtNX8+eFgR3LWorWaQSzYVMRb mOnzhlzi8sUcNy3XcmX0KtJy5ZAaeCD+Rh3Na26QbTYrrM6+fGKT71ME4TwvpPx6Wb+0 pwfrrB+RqOkdHrNV2uIJ9PNIMX5g3V3QcBUGUQzs8hSDn1QfkN+A9Vo5WgzaqZ1Kunjn 9w9fjYszhnwt4/bXBUKTKjN/CWsG/kW/jqtNmCdz1keqmewvVHP/Z9t9d21zKAyFeLfZ MX3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796314712; x=1796919512; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8nOF/NHEW4PLxUnnBWFr5OweSVG320SVnWlusxDqalc=; b=QwhyQ44XXMMCRCXeDivzyYaxXAruFCEcSrway6Xz+mzNOt76fr4clJ7HUTVXo3thDX TurH4k6fOnou0c2uhORT5/UWgmISjkM2UDYl+afMrJ3ygzobv4GzlzyfZlIWkHuTT/79 73HUybbkH4VpaBYdc6jr17DKWtQgWQKaARUZ/f0obK8abzGvqimSXmFiIEeFVeNeq8uv gftkTK6JXZ1gM0L99wgrn9VcEa3BDOjp1RDvULeTsErAmLfQXxOehN4I0Vqkrkz+xduD xrWKljwljL7lC0A07vBpyteTxXiK4PZrCJzEZSt48O49qt5C9/cVmMbCOG6VowfgDTku +YLA== X-Forwarded-Encrypted: i=1; AL+hErEYfwEZ/UfqPeiSMTB9BblITrLTZbHuo2XV0gEE3rxhJeguhGa0j4s2sSFLdTq+My7HKlMAVSPOojcA2NE=@vger.kernel.org X-Gm-Message-State: APuU4Z/e2y7GmKZcSCty1MGIpePTekAAIMt9KlbczEuDqEEtY2xVuEUM fMGIMgCzCs+ni/TT1ot7In8zAC418brPsRkRkuRFt+Aau9jfBRVGJLu6jQjKBdkx/TAZB3IR6Zj +HNUn X-Gm-Gg: AZFdTZek59TsErcjlKlY6T9Xspj+nzDxKqIUn6qVF9AvrXRN0BzEeSbl4HOrziwL48U Ae2zSh1KHbHbGurXW/YwYfUhkmq4wDLMwxW9K5NCx7T4Wq9B1lWHbpmQL+bDbGgKUKPWxqWQyQs cPn3akJ8Z67YI4OiJc7b0ezusyyGb1IuNTbCTYUtMFe/3/LsyEWOHZrnS9/Ckk5wjbVN7olB/gI vB1/d+DSrQ8wp/HZrgBOvxsdt4FdrAZD8RLmbTd/r1vIJLCS54OkmNjTkC8ZtvE3U/u4NbdPp7G tFPDrLVmEXhdds99WeTeks/7bfUTGvNu1dQNJz2vGci7+XKhSPbI+hSDsVaVCfdvblfj/n25OBW ca9DUWXhYzIaXpqIo4XvBSH5aEZPbQVtKoUb2CRtl8ab8HZriXmtpXFYPKxQL724mEHJhu0AuH4 c+7ijApyhd3Qd5c+8aCLhaDSE7TyquNFwI3bUQkP7Syb/ReGL2rzC0hZX4jXiMSGCOaBnkzcfhS 20Rv0g4XY7IlSdrgZOQr/ZzqEgcm9Zk03VKmY8cA/YfoNLl8kYy+NB20l6yi60U2nbLWofUNCqL FsR4hS2j9cmXsP/FTSthClMJXLx+DPWw/tdTodV9fMXKaxnO X-Received: by 2002:a17:906:eb15:b0:c24:4128:c19f with SMTP id a640c23a62f3a-c513a5ed086mr2687193966b.11.1796314712620; Thu, 03 Dec 2026 08:18:32 -0800 (PST) Received: from localhost (82-67-6-57.subs.proxad.net. [82.67.6.57]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513afecbb5sm1470591466b.71.2026.12.03.08.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 08:18:32 -0800 (PST) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver From: Jerome Brunet To: Philipp Zabel Cc: Jerome Brunet , 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 In-Reply-To: References: <20261201160810.2422466-1-elder@riscstar.com> <20261201160810.2422466-4-elder@riscstar.com> <177dec54772e01a5ee48feaf27fc600f7fd4708d.camel@pengutronix.de> <179630588443.3767986.11954138491151588195.b4-reply@b4> Date: Thu, 03 Dec 2026 17:18:31 +0100 Message-Id: <179631471105.3767986.8257648807787287380.b4-reply@b4> X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3996; i=jbrunet@baylibre.com; h=from:subject:message-id; bh=Pfl+Ftp+cD6RTiMWGGKBeOzl5ZTYC/6wvq+Va/h+n+A=; b=owGbwMvMwCW2VtK+WnvWU3HG02pJDNmC08KnbAmP/249b25p3tyNsy4/02wqv+wuqsX249RzZ rt/9vbRHaUsDGJcDLJiiiw13NXi7yS1vsyarnMbZg4rE8gQBi5OAZjIzgeMDLd/TpFx6dp1TD1A MoWzlyvL9d5G5obSVQ1Fyw/dVvnUPInhr/AStU/dJiKR2dELm/9GtFbvipwfXGM9vTCuKeS54+u TLAA= X-Developer-Key: i=jbrunet@baylibre.com; a=openpgp; fpr=F29F26CF27BAE1A9719AE6BDC3C92AAF3E60AED9 On 2026-12-03 15:56 +0100, Philipp Zabel wrote: > 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: > > > > > > > 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. > > > > > > > > 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). > > > > > > > > The MMIO region containing the two control registers is mapped by > > > > the clock controller driver, and passed via the auxiliary device's > > > > platform data. > > > > > > > > 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. > > > > > > > > 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(). > > > > > > > > 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 > > > > > > > > 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 > > > > > > > > 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 > > > > > > > > config COMMON_CLK_TC9564 > > > > tristate "Toshiba TC9564 clock support" > > > > + imply RESET_TC9564 > > > > > > I'd make RESET_TC9564 default COMMON_CLK_TC9564 instead. > > > > 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. > > > > 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 patch shouldn't have touched the clock part, if the order had be been right, as I pointed on the cover ;) -- Jerome