[PATCH v2] reset: Remove ARCH_HAS_RESET_CONTROLLER Kconfig symbol
Philipp Zabel
p.zabel at pengutronix.de
Tue Dec 1 07:22:03 PST 2026
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.
> 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."
regards
Philipp
More information about the linux-arm-kernel
mailing list