From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796313577; b=VTPAec6oOMh1BfFHLd/agH8CwXY4td0lEsQbK5iR36zrg3SGaT2R5zE8PEq158vEJedM mMyAlda4d5uLkJamIc/4mF8Rqjaj0+y/xjvJQItaXURvvMdLo1aTedLUfvRsfUxpc38jE pyb0tQiFe4uBXW2x7VHDHWdXDLzTYQCaNQGq27eQBYB/PM++pm/F9nr0YHJ1gJ3mbtXWg xhR8JftWh0duKfdweF6n8Zzab7ODBHblqVVZNW6/xUTEoCIM97rYWh14a2/yVAA5ZX24s 67UrAoELJiFEJBny/wF1eXGAKWCARvHyoC2Q3TejnnFIL9Og6X5jLd6+PzLXhJEQCQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796313577; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=KHPXOqy0r60IjBdv1Oca7co6zFFckV+iCVuhMRfZEZI=; b=1zl+NPtj5Ql7GCU4ZCDslIpiKwuNGt14Hh7jeDAQ5TSP7K+09jnZUEP59KChhJyhbV75 7GCHWQbIEVhR10B/ij+NQaf0IoKFcUGocKhqV+anD1iX9fwpeHji3rD2hntW7H6mYbYPY z/+mJMXZa6VumeBm3PUTaSO4hmActgqyJEPwGX5f8XvrnC7W1ggvZoL0gaH0SCEo8/KDB zvdYJ0lYsmGfoVLxXsoULnO7FYO8BmDcdvkxKFcn65HanYAsM85kRjr/x6KaMNK+ZA7oa 8r9Ae0oGx6JEQSxJbtkn51A9LKW9VpFayzpZL00feiCABYMJHi/rkadkBwwXqYgqubA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=si7Zf5bO; arc=none smtp.remote-ip=209.85.210.52 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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 4641C606A6A5 for ; Thu, 3 Dec 2026 15:59:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4641C606A6A5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=si7Zf5bO Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-845788309b4so9550a34.1 for ; Thu, 03 Dec 2026 07:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1796313576; x=1796918376; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KHPXOqy0r60IjBdv1Oca7co6zFFckV+iCVuhMRfZEZI=; b=si7Zf5bOlKx3DIuWzurlrDT7mWYJpfDu3vqGtsFX0eezSLMjiQn8bwtuVUDqNwHULF K+z7GK1D7V9gEK7acfZ7mAhJp81LVgpsirQZWdoP5svg3Ci5KtSgEdvtjO2u6+ITMVjP 6a3XyfnJQM5PD/MWq/70IkXl5xqcMkie1SiEjuskCN2PHyCblwgX3VA65s3Ah1zbw5ug Gv/228lGLscxB3QkxLzZ9rusUMyFUOTK5nc8wSczfME5VcLiGjSWxNoO4xCDFm9sQTNS nt0X7AOJ8G81mtcLyQRCc8pOpsDOZut0IRn3dAnT/WGe2KMy21hpndiMwbUUkHgh1q6q rmJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796313576; x=1796918376; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KHPXOqy0r60IjBdv1Oca7co6zFFckV+iCVuhMRfZEZI=; b=xzkwwA7wNt6jgUAmooUTLYlbRfKiVTkPFgabw+QWTwrUClxa8SKMzb7Hy/1RCRkccq vwKpjO7/6cbICeIH15yThma6U9n0LhiydE+PUrudxdfaBN1oA4YBZW6nOr8S1jnrYaeE 0evDrq0WXXGPHXYsOeCcFWoRjjIiitmaKf22eLZ3C2foYgy9YP6dx3iAqyc9SkYn1QaV FqYOSShUGMrhvJyyJ+vxn3olMstx9OHC7STEgiT9abGnfzJ50xS8ciovc0DN7UhLDOPR OFwj6rJ9wlnDyQWhkjgksDFLHP3fsqHzGKrWlXFsTv0ZkCdik1tZWd+aGXqWUrVUMpgh Uq3A== X-Forwarded-Encrypted: i=1; AL+hErEA0+Q+AyVsW32yNNS7iYHqBR7aCWDcQ8sA5GLLndlyxuHn/1ilt0ZdqXuUxuqrKUsHBL9XiDloBZmxrHY=@vger.kernel.org X-Gm-Message-State: APuU4Z9lVT2so1kcKe9gvUPZ///UnNHrse26Y4xFrAMX/7vHBB0LfDBf orDnIpkR1esis35/cgUnuYIgDgJW+fQRf4Nnm5cKA9sfyrraSYs/zGyXOdcqoBlE0/c= X-Gm-Gg: AZFdTZebISxNh8Uylkw7kM5pOM1t1JBXLJv50lV09yaajhN0WsqqgxNYKCCptVx/F+I 2krqjhOaLPM4K3/Tfup7z0lvJ/z2tMIIF3HeVbxUiecXOQstjjVif4Hs+It/yXQzfQahzxg85Xt +U5SWatKa22DaeJ7ga2QZQncM1JZM8DmrLOO0HifzyP3/QlDRUYL8CE8Qom0HoftC2cDtov2Rl4 /gtvAd7uSjbNA4yPhwTj8BpoPGwWuWZjMJoXCrsUELP+Ipru03iXXSOgWxbK1+GToYKUJnuBTzY LfEbt6nmOh0amxrop4MxhUkrcx4QsuAiPqQfQsPJuW8jg7urdOgwJpl9yBbU3Gz23G0/WUP7Q8z Yh2UgQOqWTjNS3qcm2popsEJZoH8OEV9RiiM/3ATbNZ6a6EWov5jegazPzdxrOV9KiANgdY5Ji6 hdpJLJqpnfDUfBX9Ofhp4bVwmirxBoZXqjvk/rM6i40uPIcaZqUQphwJ+weeMj0yPa+hHZDdyDK O8ubUwM55eqchCFhrbMnG5h2IeGL/+paJk+Y2cD9D5eS/PiEfuEeg6WXW9egExBvSlguXUZkoKN iD0zqoLEQMDLyYZFjCVCZ74478OBc1w= X-Received: by 2002:a05:6830:6e4f:b0:863:a0e2:39b2 with SMTP id 46e09a7af769-863a0e23b21mr19436797a34.3.1796313576230; Thu, 03 Dec 2026 07:59:36 -0800 (PST) Received: from [172.22.22.28] ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-8639242b7eesm16687448a34.24.2026.12.03.07.59.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 07:59:35 -0800 (PST) Message-ID: <6810ccef-042e-4e5b-a0a6-2a0696583b3a@riscstar.com> Date: Thu, 3 Dec 2026 09:59:34 -0600 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver To: Philipp Zabel , Jerome Brunet Cc: 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 References: <20261201160810.2422466-1-elder@riscstar.com> <20261201160810.2422466-4-elder@riscstar.com> <177dec54772e01a5ee48feaf27fc600f7fd4708d.camel@pengutronix.de> <179630588443.3767986.11954138491151588195.b4-reply@b4> Content-Language: en-US From: Alex Elder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/26 8:56 AM, 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. I can do it either way, but the way I currently understand this, Jerome is suggesting using "imply" as originally done, so that's what I plan to do. -Alex > >> The reset needs to select the AUX BUS though > > Agreed. > > regards > Philipp