From b5970d21f3729b79b5799d7a0c0e7c4c4007f926 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Mon, 10 Jul 2023 16:19:25 +0000 Subject: [PATCH] drivers: mbox: initialize before ipc Change the default mbox initialization priority so that it initializes before ipc, as some ipc drivers depends on it. Found with: $ west build -p -b nrf5340dk_nrf5340_cpuapp \ samples/subsys/ipc/ipc_service/icmsg_me \ -DCONFIG_CHECK_INIT_PRIORITIES=y ... ERROR: /ipc/ipc1 POST_KERNEL 46 < /soc/peripheral@50000000/mbox@2a000 POST_KERNEL 50 ERROR: /ipc/ipc0 POST_KERNEL 46 < /soc/peripheral@50000000/mbox@2a000 POST_KERNEL 50 Signed-off-by: Fabio Baltieri --- drivers/mbox/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mbox/Kconfig b/drivers/mbox/Kconfig index 58dd92f208..79f2207949 100644 --- a/drivers/mbox/Kconfig +++ b/drivers/mbox/Kconfig @@ -16,7 +16,7 @@ source "drivers/mbox/Kconfig.nxp_s32" config MBOX_INIT_PRIORITY int "MBOX init priority" - default KERNEL_INIT_PRIORITY_DEVICE + default 40 help MBOX driver device initialization priority.