[PATCH -next] firmware: imx: depend on MAILBOX for EdgeLock Enclave driver

Pankaj Gupta posted 1 patch 1 week, 4 days ago
drivers/firmware/imx/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH -next] firmware: imx: depend on MAILBOX for EdgeLock Enclave driver
Posted by Pankaj Gupta 1 week, 4 days ago
The EdgeLock Enclave driver uses mailbox core APIs such as
mbox_request_channel_byname(), mbox_free_channel(), and
mbox_send_message(). The current Kconfig allows the driver to be built
with COMPILE_TEST even when MAILBOX is disabled, which leads to linker
failures from unresolved mailbox symbols.

Require MAILBOX explicitly so COMPILE_TEST builds still include the
mailbox core when this driver is selected.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605270101.2FFpzoFg-lkp@intel.com/
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
---
 drivers/firmware/imx/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/imx/Kconfig b/drivers/firmware/imx/Kconfig
index 1f89dd140113..e3cb7f965e70 100644
--- a/drivers/firmware/imx/Kconfig
+++ b/drivers/firmware/imx/Kconfig
@@ -58,7 +58,7 @@ config IMX_SCMI_MISC_DRV
 
 config IMX_SEC_ENCLAVE
 	tristate "i.MX Embedded Secure Enclave - EdgeLock Enclave Firmware driver."
-	depends on (IMX_MBOX && ARCH_MXC && ARM64) || COMPILE_TEST
+	depends on MAILBOX && ((IMX_MBOX && ARCH_MXC && ARM64) || COMPILE_TEST)
 	select FW_LOADER
 	default m if ARCH_MXC
 
-- 
2.43.0