soc: mediatek: Kconfig: Add MTK_CMDQ dependency to MTK_MMSYS
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 3 Apr 2023 09:33:04 +0000 (11:33 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 11 Apr 2023 15:15:10 +0000 (17:15 +0200)
The mtk-mmsys and mutex drivers do have a dependency on MTK_CMDQ,
even though both can work with *or* without it: since CMDQ support
can be enabled either as module or as built-in, it is necessary to
add a depends rule in Kconfig, so that we disallow building both
mtk-mmsys and mtk-mutex as built-in if mtk-cmdq-helper is built as
a module, otherwise obvious linker issues appear.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230403093304.276418-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/Kconfig

index d6b83a5..a88cf04 100644 (file)
@@ -76,6 +76,7 @@ config MTK_MMSYS
        tristate "MediaTek MMSYS Support"
        default ARCH_MEDIATEK
        depends on HAS_IOMEM
+       depends on MTK_CMDQ || MTK_CMDQ=n
        help
          Say yes here to add support for the MediaTek Multimedia
          Subsystem (MMSYS).