mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST
@ 2026-11-18 11:02 Daniel Lezcano
  2026-11-18 14:33 ` Mario Limonciello
  2026-11-18 15:43 ` Mark Pearson
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lezcano @ 2026-11-18 11:02 UTC (permalink / raw)
  To: rafael
  Cc: Geert Uytterhoeven, Rafael J. Wysocki, Mark Pearson,
	Mario Limonciello (AMD),
	open list

All platform profile providers select PLATFORM_PROFILE, so users do not
need to enable the core explicitly.

Only show its prompt when COMPILE_TEST is enabled. This avoids exposing
the option in normal configurations while allowing the architecture-independent
core to be build-tested without a provider.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
---
 drivers/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
index 7270f24a3b6e..1cf87904afc3 100644
--- a/drivers/platform/Kconfig
+++ b/drivers/platform/Kconfig
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PLATFORM_PROFILE
-	tristate "Platform profile support"
+	tristate "Platform profile support" if COMPILE_TEST
 	help
 	  Provide a common sysfs interface for selecting platform power,
 	  performance and cooling profiles. Platform-specific provider drivers
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST
  2026-11-18 11:02 [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST Daniel Lezcano
@ 2026-11-18 14:33 ` Mario Limonciello
  2026-11-18 15:43 ` Mark Pearson
  1 sibling, 0 replies; 3+ messages in thread
From: Mario Limonciello @ 2026-11-18 14:33 UTC (permalink / raw)
  To: Daniel Lezcano, rafael
  Cc: Geert Uytterhoeven, Rafael J. Wysocki, Mark Pearson, open list

On 11/18/26 05:02, Daniel Lezcano wrote:
> All platform profile providers select PLATFORM_PROFILE, so users do not
> need to enable the core explicitly.
> 
> Only show its prompt when COMPILE_TEST is enabled. This avoids exposing
> the option in normal configurations while allowing the architecture-independent
> core to be build-tested without a provider.
> 
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
> ---
>   drivers/platform/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
> index 7270f24a3b6e..1cf87904afc3 100644
> --- a/drivers/platform/Kconfig
> +++ b/drivers/platform/Kconfig
> @@ -1,6 +1,6 @@
>   # SPDX-License-Identifier: GPL-2.0-only
>   config PLATFORM_PROFILE
> -	tristate "Platform profile support"
> +	tristate "Platform profile support" if COMPILE_TEST
>   	help
>   	  Provide a common sysfs interface for selecting platform power,
>   	  performance and cooling profiles. Platform-specific provider drivers

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST
  2026-11-18 11:02 [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST Daniel Lezcano
  2026-11-18 14:33 ` Mario Limonciello
@ 2026-11-18 15:43 ` Mark Pearson
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Pearson @ 2026-11-18 15:43 UTC (permalink / raw)
  To: Daniel Lezcano, Rafael J. Wysocki
  Cc: Geert Uytterhoeven, Rafael J Wysocki, Mario Limonciello, open list

On Wed, Nov 18, 2026, at 6:02 AM, Daniel Lezcano wrote:
> All platform profile providers select PLATFORM_PROFILE, so users do not
> need to enable the core explicitly.
>
> Only show its prompt when COMPILE_TEST is enabled. This avoids exposing
> the option in normal configurations while allowing the architecture-independent
> core to be build-tested without a provider.
>
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
> ---
>  drivers/platform/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
> index 7270f24a3b6e..1cf87904afc3 100644
> --- a/drivers/platform/Kconfig
> +++ b/drivers/platform/Kconfig
> @@ -1,6 +1,6 @@
>  # SPDX-License-Identifier: GPL-2.0-only
>  config PLATFORM_PROFILE
> -	tristate "Platform profile support"
> +	tristate "Platform profile support" if COMPILE_TEST
>  	help
>  	  Provide a common sysfs interface for selecting platform power,
>  	  performance and cooling profiles. Platform-specific provider drivers
> -- 
> 2.43.0
Looks good to me
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-18 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 11:02 [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST Daniel Lezcano
2026-11-18 14:33 ` Mario Limonciello
2026-11-18 15:43 ` Mark Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®