]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cdx: Enable compile testing
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 2 May 2025 06:20:33 +0000 (08:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2025 10:18:07 +0000 (12:18 +0200)
There is no code limited to ARM64 or OF/Devicetree in the CDX bus
driver, so CDX_BUS can be compile tested on all platforms.
CDX_CONTROLLER on the other hand selects REMOTEPROC which depends on
HAS_DMA, so add that dependency for compile testing.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Nikhil Agarwal <nikhil.agarwal@amd.com>
Link: https://lore.kernel.org/r/20250502-cdx-clean-v3-1-6aaa5b369fc5@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cdx/Kconfig
drivers/cdx/controller/Kconfig

index a08958485e316a1a3e00390d90c7a9eaa518d0e8..1f1e360507d7d5c33671c601534e82f2d4de0424 100644 (file)
@@ -7,7 +7,7 @@
 
 config CDX_BUS
        bool "CDX Bus driver"
-       depends on OF && ARM64
+       depends on OF && ARM64 || COMPILE_TEST
        help
          Driver to enable Composable DMA Transfer(CDX) Bus. CDX bus
          exposes Fabric devices which uses composable DMA IP to the
index f8e729761aeed03302d6c625b74f5e54bfd1bcbf..0641a4c21e660833efd9ac05e9431b58aa10ec03 100644 (file)
@@ -9,6 +9,7 @@ if CDX_BUS
 
 config CDX_CONTROLLER
        tristate "CDX bus controller"
+       depends on HAS_DMA
        select GENERIC_MSI_IRQ
        select REMOTEPROC
        select RPMSG