From: Andrew Davis <afd@ti.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
Russell King <linux@armlinux.org.uk>,
Catalin Marinas <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Arnd Bergmann <arnd@arndb.de>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-mips@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] reset: Remove ARCH_HAS_RESET_CONTROLLER Kconfig symbol
Date: Tue, 1 Dec 2026 11:58:32 -0600 [thread overview]
Message-ID: <91e3e986-6336-464f-b59d-b68e179ecb58@ti.com> (raw)
In-Reply-To: <1edc1d929eef012db0ef006b693a027fcf3883fc.camel@pengutronix.de>
On 12/1/26 9:22 AM, Philipp Zabel wrote:
> On Fr, 2026-11-20 at 11:47 -0600, Andrew Davis wrote:
>> Many ARCH_HAS_* symbols change some behavior based on what an ARCH
>> supports, but ARCH_HAS_RESET_CONTROLLER is used only to set a default
>> for RESET_CONTROLLER. Those ARCH symbols that select this can skip the
>> middleman and directly select RESET_CONTROLLER, and many already do.
>>
>> Replace all selection of this symbol with a direct selection of
>> RESET_CONTROLLER when it is not already in the selection list.
>
> This part is what makes the "minimal builds without reset support"
> (mentioned further below) impossible on those ARCHes. I'm not sure if
> that is an issue for anyone or not.
>
>> When
>> RESET_CONTROLLER is also already selected we can simply remove the
>> ARCH_HAS_RESET_CONTROLLER without changing existing behavior.
>
> Ack.
>
>> Some ARCHs "select" this symbol when they actually "depend on" the
>> RESET_CONTROLLER framework to build, in those cases the indirect select
>> could lead to broken randconfig builds.
>
> How so?
>
> RESET_CONTROLLER is boolean and has no dependencies, so selecting it
> instead of depending on it should not make any difference.
>
Correct, "depending on" or "selecting" RESET_CONTROLLER makes no
difference in this case, but that isn't what these platforms did before
this patch. They selected ARCH_HAS_RESET_CONTROLLER (which is what DT
should tell us, not kconfig), which only made RESET_CONTROLLER "default y",
allowing it to still be deselected by randconfig. In the case where the
platform code actually did depend on RESET_CONTROLLER this "default y" was
not strong enough to prevent bad configs. "Select" is.
We still now need to go back and find which platforms really depended on
it, and which only "wanted" it (which should not be described in kconfig
IMHO, users want features, not platforms). This patch only takes the safe
first step and makes platforms select it directly.
>> In cases when it is not needed
>> for building the ARCH code, these selections can be removed to allow for
>> minimal builds without reset support.
>
> "... again."
>
Fair, as you pointed out above, this does lock some of these platforms
into including the RESET_CONTROLLER framework, when before it could have
been disabled manually if one desired. I'll go and individually relax this
for platforms that don't strictly need it next. If we wanted exact behavior
as before, then we could have switched to "imply RESET_CONTROLLER", but
Arnd pushed back at even the suggestion of using "imply" in v1.
Andrew
>
> regards
> Philipp
prev parent reply other threads:[~2026-12-01 18:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 17:47 [PATCH v2] reset: Remove ARCH_HAS_RESET_CONTROLLER Kconfig symbol Andrew Davis
2026-12-01 15:22 ` Philipp Zabel
2026-12-01 17:58 ` Andrew Davis [this message]
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=91e3e986-6336-464f-b59d-b68e179ecb58@ti.com \
--to=afd@ti.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=will@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