diff mbox series

[v4,1/7] event: Split EVENT and SPL_EVENT sections

Message ID 20261104-v2026-10-next-topic-am62-hs-se-fix-unlock-race-v4-1-e211cba9f3ea@baylibre.com
State New
Delegated to: Tom Rini
Headers show
Series K3: wait for TIFS init before CTRL_MMR unlock | expand

Commit Message

Markus Schneider-Pargmann Nov. 4, 2026, 10:58 a.m. UTC
Logically it doesn't make sense to require EVENT if SPL_EVENT should be
selected. But this is what currently happens since SPL_EVENT is within
the EVENT section.

Split SPL_EVENT and EVENT into different sections, so they can be
selected independently.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
---
 common/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comments

Neha Malcom Francis Nov. 4, 2026, 12:56 p.m. UTC | #1
On Wed, 04 Nov 2026 11:58:19 +0100, Markus Schneider-Pargmann <msp@baylibre.com> wrote:
> Logically it doesn't make sense to require EVENT if SPL_EVENT should be
> selected. But this is what currently happens since SPL_EVENT is within
> the EVENT section.
> 
> Split SPL_EVENT and EVENT into different sections, so they can be
> selected independently.
> 
> [...]

Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
diff mbox series

Patch

diff --git a/common/Kconfig b/common/Kconfig
index 110eaa0d0049..592720373a31 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -674,6 +674,8 @@  config EVENT_DEBUG
 	  events, such as event-type names. This adds to the code size of
 	  U-Boot so can be turned off for production builds.
 
+endif # EVENT
+
 config SPL_EVENT
 	bool  # General-purpose event-handling mechanism in SPL
 	depends on SPL
@@ -686,15 +688,17 @@  config SPL_EVENT
 
 	  See doc/develop/event.rst for more information.
 
+if SPL_EVENT
+
 config SPL_EVENT_DYNAMIC
 	bool
-	depends on SPL_EVENT && EVENT_DYNAMIC
+	depends on EVENT_DYNAMIC
 	help
 	  Enable this to support adding an event spy at runtime, without adding
 	  it to the EVENT_SPY*() linker list. This increases code size slightly
 	  but provides more flexibility for boards and subsystems that need it.
 
-endif # EVENT
+endif # SPL_EVENT
 
 config ARCH_EARLY_INIT_R
 	bool