From 57d777b6400b2ebb165159d3659563f30333ed12 Mon Sep 17 00:00:00 2001 From: Declan Snyder Date: Wed, 14 Aug 2024 17:45:39 -0500 Subject: [PATCH] drivers: flash/memc: Source logging kconfig last Some flash/memc drivers like flexspi will want to default the value of the log level to off to avoid RWW hazard while XIP, to do this, the logging template must be sourced after the driver kconfig files so that the default value from the driver is able to be checked, since logging template introduces an unconditional default otherwise. Signed-off-by: Declan Snyder --- drivers/flash/Kconfig | 8 ++++---- drivers/memc/Kconfig | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/flash/Kconfig b/drivers/flash/Kconfig index aae29acca26..f2a8cba5ac8 100644 --- a/drivers/flash/Kconfig +++ b/drivers/flash/Kconfig @@ -86,10 +86,6 @@ menuconfig FLASH if FLASH -module = FLASH -module-str = flash -source "subsys/logging/Kconfig.template.log_config" - config FLASH_JESD216_API bool "Provide API to read JESD216 flash parameters" depends on FLASH_JESD216 @@ -239,4 +235,8 @@ source "drivers/flash/Kconfig.nrf_mram" source "drivers/flash/Kconfig.numaker_rmc" +module = FLASH +module-str = flash +source "subsys/logging/Kconfig.template.log_config" + endif # FLASH diff --git a/drivers/memc/Kconfig b/drivers/memc/Kconfig index 54c30e1cacf..0e351bc44ae 100644 --- a/drivers/memc/Kconfig +++ b/drivers/memc/Kconfig @@ -11,10 +11,6 @@ menuconfig MEMC if MEMC -module = MEMC -module-str = memc -source "subsys/logging/Kconfig.template.log_config" - config MEMC_INIT_PRIORITY int "Initialization priority" default 0 @@ -35,4 +31,8 @@ source "drivers/memc/Kconfig.smartbond" source "drivers/memc/Kconfig.mspi" +module = MEMC +module-str = memc +source "subsys/logging/Kconfig.template.log_config" + endif