public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: Move endif to the end of Kconfig file
@ 2025-01-10  5:53 Viresh Kumar
  2025-01-10  8:57 ` Pierre Gondois
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Viresh Kumar @ 2025-01-10  5:53 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Sunil V L, Sudeep Holla,
	Palmer Dabbelt, Pierre Gondois
  Cc: linux-pm, Vincent Guittot, linux-kernel

It is possible to enable few cpufreq drivers, without the framework
being enabled. This happened due to a bug while moving the entries
earlier. Fix it.

Fixes: 7ee1378736f0 ("cpufreq: Move CPPC configs to common Kconfig and add RISC-V")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index ea9afdc119fb..d64b07ec48e5 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -325,8 +325,6 @@ config QORIQ_CPUFREQ
 	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
 	  which are capable of changing the CPU's frequency dynamically.
 
-endif
-
 config ACPI_CPPC_CPUFREQ
 	tristate "CPUFreq driver based on the ACPI CPPC spec"
 	depends on ACPI_PROCESSOR
@@ -355,4 +353,6 @@ config ACPI_CPPC_CPUFREQ_FIE
 
 	  If in doubt, say N.
 
+endif
+
 endmenu
-- 
2.31.1.272.g89b43f80a514


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

* Re: [PATCH] cpufreq: Move endif to the end of Kconfig file
  2025-01-10  5:53 [PATCH] cpufreq: Move endif to the end of Kconfig file Viresh Kumar
@ 2025-01-10  8:57 ` Pierre Gondois
  2025-01-10  9:18 ` Sunil V L
  2025-01-10 14:43 ` Sudeep Holla
  2 siblings, 0 replies; 5+ messages in thread
From: Pierre Gondois @ 2025-01-10  8:57 UTC (permalink / raw)
  To: Viresh Kumar, Rafael J. Wysocki, Sunil V L, Sudeep Holla,
	Palmer Dabbelt
  Cc: linux-pm, Vincent Guittot, linux-kernel

Hello Viresh,

Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>

On 1/10/25 06:53, Viresh Kumar wrote:
> It is possible to enable few cpufreq drivers, without the framework
> being enabled. This happened due to a bug while moving the entries
> earlier. Fix it.
> 
> Fixes: 7ee1378736f0 ("cpufreq: Move CPPC configs to common Kconfig and add RISC-V")
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>   drivers/cpufreq/Kconfig | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> index ea9afdc119fb..d64b07ec48e5 100644
> --- a/drivers/cpufreq/Kconfig
> +++ b/drivers/cpufreq/Kconfig
> @@ -325,8 +325,6 @@ config QORIQ_CPUFREQ
>   	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
>   	  which are capable of changing the CPU's frequency dynamically.
>   
> -endif
> -
>   config ACPI_CPPC_CPUFREQ
>   	tristate "CPUFreq driver based on the ACPI CPPC spec"
>   	depends on ACPI_PROCESSOR
> @@ -355,4 +353,6 @@ config ACPI_CPPC_CPUFREQ_FIE
>   
>   	  If in doubt, say N.
>   
> +endif
> +
>   endmenu

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

* Re: [PATCH] cpufreq: Move endif to the end of Kconfig file
  2025-01-10  5:53 [PATCH] cpufreq: Move endif to the end of Kconfig file Viresh Kumar
  2025-01-10  8:57 ` Pierre Gondois
@ 2025-01-10  9:18 ` Sunil V L
  2025-01-10 14:43 ` Sudeep Holla
  2 siblings, 0 replies; 5+ messages in thread
From: Sunil V L @ 2025-01-10  9:18 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Rafael J. Wysocki, Sudeep Holla, Palmer Dabbelt, Pierre Gondois,
	linux-pm, Vincent Guittot, linux-kernel

On Fri, Jan 10, 2025 at 11:23:10AM +0530, Viresh Kumar wrote:
> It is possible to enable few cpufreq drivers, without the framework
> being enabled. This happened due to a bug while moving the entries
> earlier. Fix it.
> 
> Fixes: 7ee1378736f0 ("cpufreq: Move CPPC configs to common Kconfig and add RISC-V")
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  drivers/cpufreq/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> index ea9afdc119fb..d64b07ec48e5 100644
> --- a/drivers/cpufreq/Kconfig
> +++ b/drivers/cpufreq/Kconfig
> @@ -325,8 +325,6 @@ config QORIQ_CPUFREQ
>  	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
>  	  which are capable of changing the CPU's frequency dynamically.
>  
> -endif
> -
>  config ACPI_CPPC_CPUFREQ
>  	tristate "CPUFreq driver based on the ACPI CPPC spec"
>  	depends on ACPI_PROCESSOR
> @@ -355,4 +353,6 @@ config ACPI_CPPC_CPUFREQ_FIE
>  
>  	  If in doubt, say N.
>  
> +endif
> +
>  endmenu
Thanks! Viresh for fixing this.

Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>


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

* Re: [PATCH] cpufreq: Move endif to the end of Kconfig file
  2025-01-10  5:53 [PATCH] cpufreq: Move endif to the end of Kconfig file Viresh Kumar
  2025-01-10  8:57 ` Pierre Gondois
  2025-01-10  9:18 ` Sunil V L
@ 2025-01-10 14:43 ` Sudeep Holla
  2025-01-14 19:57   ` Rafael J. Wysocki
  2 siblings, 1 reply; 5+ messages in thread
From: Sudeep Holla @ 2025-01-10 14:43 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Rafael J. Wysocki, Sunil V L, Palmer Dabbelt, Pierre Gondois,
	linux-pm, Sudeep Holla, Vincent Guittot, linux-kernel

On Fri, Jan 10, 2025 at 11:23:10AM +0530, Viresh Kumar wrote:
> It is possible to enable few cpufreq drivers, without the framework
> being enabled. This happened due to a bug while moving the entries
> earlier. Fix it.
>

Surprising to see how randconfigs has not managed to catch this so far.

Anyways,

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>

> Fixes: 7ee1378736f0 ("cpufreq: Move CPPC configs to common Kconfig and add RISC-V")
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  drivers/cpufreq/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> index ea9afdc119fb..d64b07ec48e5 100644
> --- a/drivers/cpufreq/Kconfig
> +++ b/drivers/cpufreq/Kconfig
> @@ -325,8 +325,6 @@ config QORIQ_CPUFREQ
>  	  This adds the CPUFreq driver support for Freescale QorIQ SoCs
>  	  which are capable of changing the CPU's frequency dynamically.
>  
> -endif
> -
>  config ACPI_CPPC_CPUFREQ
>  	tristate "CPUFreq driver based on the ACPI CPPC spec"
>  	depends on ACPI_PROCESSOR
> @@ -355,4 +353,6 @@ config ACPI_CPPC_CPUFREQ_FIE
>  
>  	  If in doubt, say N.
>  
> +endif
> +
>  endmenu
> -- 
> 2.31.1.272.g89b43f80a514
> 

-- 
Regards,
Sudeep

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

* Re: [PATCH] cpufreq: Move endif to the end of Kconfig file
  2025-01-10 14:43 ` Sudeep Holla
@ 2025-01-14 19:57   ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2025-01-14 19:57 UTC (permalink / raw)
  To: Sudeep Holla, Viresh Kumar
  Cc: Sunil V L, Palmer Dabbelt, Pierre Gondois, linux-pm,
	Vincent Guittot, linux-kernel

On Fri, Jan 10, 2025 at 3:43 PM Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> On Fri, Jan 10, 2025 at 11:23:10AM +0530, Viresh Kumar wrote:
> > It is possible to enable few cpufreq drivers, without the framework
> > being enabled. This happened due to a bug while moving the entries
> > earlier. Fix it.
> >
>
> Surprising to see how randconfigs has not managed to catch this so far.
>
> Anyways,
>
> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>

Applied as a fix for 6.13, thanks!

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

end of thread, other threads:[~2025-01-14 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10  5:53 [PATCH] cpufreq: Move endif to the end of Kconfig file Viresh Kumar
2025-01-10  8:57 ` Pierre Gondois
2025-01-10  9:18 ` Sunil V L
2025-01-10 14:43 ` Sudeep Holla
2025-01-14 19:57   ` Rafael J. Wysocki

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