Patch "mailbox, remoteproc: k3-m4+: fix compile testing" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mailbox, remoteproc: k3-m4+: fix compile testing

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mailbox-remoteproc-k3-m4-fix-compile-testing.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d88977536120c424083eeb5ec813fdaeb82677c3
Author: Arnd Bergmann <arnd@xxxxxxxx>
Date:   Mon Oct 7 13:23:57 2024 +0000

    mailbox, remoteproc: k3-m4+: fix compile testing
    
    [ Upstream commit 9c12b96ee244b9679629ac430c375a720bfec04b ]
    
    The k3-m4 remoteproc driver was merged with incorrect dependencies.
    Despite multiple people trying to fix this, the version 6.12-rc2
    remains broken and causes a build failure with CONFIG_TI_SCI_PROTOCOL=m
    when the driver is built-in.
    
    arm-linux-gnueabi-ld: drivers/remoteproc/ti_k3_m4_remoteproc.o: in function `k3_m4_rproc_probe':
    ti_k3_m4_remoteproc.c:(.text.k3_m4_rproc_probe+0x76): undefined reference to `devm_ti_sci_get_by_phandle'
    
    Fix the dependency again to make it work in all configurations.
    The 'select OMAP2PLUS_MBOX' no longer matches what the other drivers
    dependencies. The link failure can be avoided with a simple 'depends
    do, so turn that into the same 'depends' to ensure we get no circular
    on TI_SCI_PROTOCOL', but the extra COMPILE_TEST alternative is what
    we use elsehwere. On the other hand, building for OMAP2PLUS makes
    no sense since the hardware only exists on K3.
    
    Fixes: ebcf9008a895 ("remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem")
    Fixes: ba0c0cb56f22 ("remoteproc: k3-m4: use the proper dependencies")
    Fixes: 54595f2807d2 ("mailbox, remoteproc: omap2+: fix compile testing")
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Link: https://lore.kernel.org/r/20241007132441.2732215-1-arnd@xxxxxxxxxx
    Signed-off-by: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig
index 955e4e38477e6..62f8548fb46a5 100644
--- a/drivers/remoteproc/Kconfig
+++ b/drivers/remoteproc/Kconfig
@@ -341,9 +341,9 @@ config TI_K3_DSP_REMOTEPROC
 
 config TI_K3_M4_REMOTEPROC
 	tristate "TI K3 M4 remoteproc support"
-	depends on ARCH_OMAP2PLUS || ARCH_K3
-	select MAILBOX
-	select OMAP2PLUS_MBOX
+	depends on ARCH_K3 || COMPILE_TEST
+	depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
+	depends on OMAP2PLUS_MBOX
 	help
 	  Say m here to support TI's M4 remote processor subsystems
 	  on various TI K3 family of SoCs through the remote processor




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux