[PATCH 1/2] pmdomain: mediatek: Convert MTK_SCPSYS to tristate

Justin Yeh justin.yeh at mediatek.com
Tue Jun 2 22:11:50 PDT 2026


Convert CONFIG_MTK_SCPSYS from bool to tristate to support building
as a loadable module for GKI compliance.

This change allows MTK_SCPSYS to be built as:
- CONFIG_MTK_SCPSYS=y: built-in (traditional approach)
- CONFIG_MTK_SCPSYS=m: module (GKI/vendor_dlkm approach)
- CONFIG_MTK_SCPSYS is not set: disabled

The tristate option is the standard kernel pattern for drivers that
need to support both built-in and modular configurations without
requiring separate Kconfig options.

This aligns common/staging with the equivalent change in
private/desktop-google, ensuring consistent configuration across
both kernel trees.

Signed-off-by: Justin Yeh <justin.yeh at mediatek.com>
---
 drivers/pmdomain/mediatek/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pmdomain/mediatek/Kconfig b/drivers/pmdomain/mediatek/Kconfig
index 8923e6516441..bf5108ba360a 100644
--- a/drivers/pmdomain/mediatek/Kconfig
+++ b/drivers/pmdomain/mediatek/Kconfig
@@ -4,7 +4,7 @@ menu "MediaTek PM Domains"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
 
 config MTK_SCPSYS
-	bool "MediaTek SCPSYS Support"
+	tristate "MediaTek SCPSYS Support"
 	default ARCH_MEDIATEK
 	depends on OF
 	select REGMAP
-- 
2.45.2




More information about the linux-arm-kernel mailing list