Skip to contentSkip to conversation

firmware: thead: add CONFIG_MAILBOX dependency

PATCH In review Arnd Bergmann 3 participants 3 messages Mar 14, 2025 – Mar 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: thead: add CONFIG_MAILBOX dependency

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/firmware/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/Kconfig +1 -0
index 42e3dd1c387a..6ab9f7ca7ff1 100644
@@ -239,6 +239,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
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/firmware/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/Kconfig +0 -0
index 42e3dd1c387a..6ab9f7ca7ff1 100644

drivers/firmware/Kconfig config SYSFB_SIMPLEFB · line 245

Quoted 7 lines
drivers/firmware/Kconfig +1 -0
@@ -239,6 +239,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

Thanks, looks good shouldn't have missed that.

#2 lore raw
In reply to Arnd Bergmann
Quoted 12 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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'

Quoted 2 lines
Fixes e4b3cbd840e5 ("firmware: thead: Add AON firmware protocol driver")

Applied for next, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/firmware/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/Kconfig +1 -1
index 42e3dd1c387a..6ab9f7ca7ff1 100644
@@ -239,6 +239,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
--

2.39.5