airoha: fix Kconfig dependency issue with PM Domain driver
The AIROHA_CPU_PM_DOMAIN option was added inside the MediaTek PM Domains menu, which depends on ARCH_MEDIATEK || COMPILE_TEST. Since Airoha platforms use ARCH_AIROHA, the menu is invisible during kernel configuration, silently dropping AIROHA_CPU_PM_DOMAIN. This breaks running `make kernel_menuconfig`. Add ARCH_AIROHA to the menu dependency so that this option and its dependencies (PM_GENERIC_DOMAINS, PM_GENERIC_DOMAINS_OF) remain enabled on Airoha targets. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
2991205555
commit
3458057195
1 changed files with 38 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
From 2f721ce391dcfa83b323f16c44b4c98337c8bfcd Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
|
||||
Date: Wed, 8 Jul 2026 12:51:30 +0200
|
||||
Subject: [PATCH] pmdomain: mediatek: allow Airoha platform to access the PM
|
||||
Domains menu
|
||||
|
||||
The AIROHA_CPU_PM_DOMAIN option was added in commit 82e703dd438b
|
||||
("pmdomain: airoha: Add Airoha CPU PM Domain support") inside the
|
||||
MediaTek PM Domains menu, which is guarded by:
|
||||
|
||||
depends on ARCH_MEDIATEK || COMPILE_TEST
|
||||
|
||||
Since the Airoha platform uses ARCH_AIROHA (not ARCH_MEDIATEK), the
|
||||
entire menu is invisible during kernel configuration. As a result,
|
||||
AIROHA_CPU_PM_DOMAIN and the options it selects (PM_GENERIC_DOMAINS,
|
||||
PM_GENERIC_DOMAINS_OF) cannot be enabled through menuconfig and are
|
||||
silently dropped by oldconfig, even when ARCH_AIROHA=y.
|
||||
|
||||
Relax the menu dependency to also accept ARCH_AIROHA so that Airoha
|
||||
platforms can reach all PM domain options.
|
||||
|
||||
Fixes: 82e703dd438b ("pmdomain: airoha: Add Airoha CPU PM Domain support")
|
||||
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
|
||||
---
|
||||
drivers/pmdomain/mediatek/Kconfig | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/pmdomain/mediatek/Kconfig
|
||||
+++ b/drivers/pmdomain/mediatek/Kconfig
|
||||
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
menu "MediaTek PM Domains"
|
||||
- depends on ARCH_MEDIATEK || COMPILE_TEST
|
||||
+ depends on ARCH_MEDIATEK || ARCH_AIROHA || COMPILE_TEST
|
||||
|
||||
config MTK_SCPSYS
|
||||
bool "MediaTek SCPSYS Support"
|
||||
Loading…
Reference in a new issue