From: Arnd Bergmann Date: Fri, 14 Mar 2025 15:48:13 +0000 (+0100) Subject: firmware: thead: add CONFIG_MAILBOX dependency X-Git-Tag: v6.15-rc1~177^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51f0b8911ec4355cea07b180f6569cc52f65aaa8;p=thirdparty%2Fkernel%2Flinux.git firmware: thead: add CONFIG_MAILBOX dependency Without this, the driver fails to build: ld: drivers/firmware/thead,th1520-aon.o: in function `th1520_aon_call_rpc': thead,th1520-aon.c:(.text+0x28): undefined reference to `mbox_send_message' ld: drivers/firmware/thead,th1520-aon.o: in function `th1520_aon_deinit': thead,th1520-aon.c:(.text+0x17e): undefined reference to `mbox_free_channel' ld: drivers/firmware/thead,th1520-aon.o: in function `th1520_aon_init': thead,th1520-aon.c:(.text+0x1d9): undefined reference to `mbox_request_channel_byname' Fixes: e4b3cbd840e5 ("firmware: thead: Add AON firmware protocol driver") Signed-off-by: Arnd Bergmann Reviewed-by: Michal Wilczynski Link: https://lore.kernel.org/r/20250314154816.4045334-1-arnd@kernel.org Signed-off-by: Ulf Hansson --- diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 52c1450977707..ebdd972e6f198 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -215,6 +215,7 @@ config SYSFB_SIMPLEFB config TH1520_AON_PROTOCOL tristate "Always-On firmware protocol" depends on ARCH_THEAD || COMPILE_TEST + depends on MAILBOX help Power, clock, and resource management capabilities on the TH1520 SoC are managed by the E902 core. Firmware running on this core communicates with