mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Elder <elder@riscstar.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
	Jerome Brunet <jbrunet@baylibre.com>
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
Subject: Re: [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver
Date: Thu, 3 Dec 2026 09:59:34 -0600	[thread overview]
Message-ID: <6810ccef-042e-4e5b-a0a6-2a0696583b3a@riscstar.com> (raw)
In-Reply-To: <c81b6076e3c9db151c033850df90dbdace78507a.camel@pengutronix.de>

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 <daniel@riscstar.com>
>>>> Signed-off-by: Daniel Thompson <daniel@riscstar.com>
>>>> Signed-off-by: Alex Elder <elder@riscstar.com>
>>>> ---
>>>> 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 <lorenzo.bianconi@oss.qualcomm.com>
>>>>   M:	Alex Elder <elder@kernel.org>
>>>>   M:	Daniel Thompson <danielt@kernel.org>
>>>>   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


  reply	other threads:[~2026-12-03 15:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:08 [PATCH v4 0/4] clk: tc9564: introduce clock and reset drivers Alex Elder
2026-12-01 16:08 ` [PATCH v4 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Alex Elder
2026-12-03 13:52   ` Jerome Brunet
2026-12-03 15:59     ` Alex Elder
2026-12-03 16:15       ` Jerome Brunet
2026-12-03 16:29         ` Alex Elder
2026-12-03 18:36           ` Jerome Brunet
2026-12-01 16:08 ` [PATCH v4 2/4] clk: toshiba: introduce a TC9564 clock driver Alex Elder
2026-12-03 13:52   ` Jerome Brunet
2026-12-03 17:59     ` Alex Elder
2026-12-01 16:08 ` [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver Alex Elder
2026-12-01 17:11   ` Philipp Zabel
2026-12-03 13:51     ` Jerome Brunet
2026-12-03 14:56       ` Philipp Zabel
2026-12-03 15:59         ` Alex Elder [this message]
2026-12-03 16:18         ` Jerome Brunet
2026-12-03 16:29           ` Alex Elder
2026-12-03 15:59       ` Alex Elder
2026-12-01 18:36   ` Lorenzo Bianconi
2026-12-01 16:08 ` [PATCH v4 4/4] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node Alex Elder
2026-12-03 13:52 ` [PATCH v4 0/4] clk: tc9564: introduce clock and reset drivers Jerome Brunet
2026-12-03 15:59   ` Alex Elder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6810ccef-042e-4e5b-a0a6-2a0696583b3a@riscstar.com \
    --to=elder@riscstar.com \
    --cc=abelvesa@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andersson@kernel.org \
    --cc=arnd@arndb.de \
    --cc=bmasney+clk@redhat.com \
    --cc=changhuang.liang@starfivetech.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel@riscstar.com \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrice.gasnier@foss.st.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=jbrunet@baylibre.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=marex@nabladev.com \
    --cc=mohd.anwar@oss.qualcomm.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®