linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers
@ 2024-08-06 13:58 Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed Rob Herring (Arm)
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

This series enables building CPUFreq Arm based drivers on multiple 
architectures when COMPILE_TEST is enabled.

The drivers for x86 and powerpc appear to be dependent on the 
respective arch code, so those can't be similarly enabled for 
COMPILE_TEST.

I've built this on arm32, arm64, powerpc, and x86 allmodconfig. It's 
been built by 0-day and I fixed a couple of issues from that. I imagine 
a few more might crop up when this is added to linux-next.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
Rob Herring (Arm) (6):
      cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed
      cpufreq: omap: Drop asm includes
      cpufreq: armada-8k: Avoid excessive stack usage
      opp: ti: Drop unnecessary of_match_ptr()
      cpufreq: Enable COMPILE_TEST on Arm drivers
      cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers

 drivers/cpufreq/Kconfig             |  2 --
 drivers/cpufreq/Kconfig.arm         | 50 ++++++++++++++++++++++---------------
 drivers/cpufreq/armada-8k-cpufreq.c |  2 +-
 drivers/cpufreq/omap-cpufreq.c      |  3 ---
 drivers/cpufreq/qcom-cpufreq-hw.c   |  1 +
 drivers/opp/ti-opp-supply.c         |  2 +-
 6 files changed, 33 insertions(+), 27 deletions(-)
---
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
change-id: 20240805-dt-api-cleanups-d63eb4f53423

Best regards,
-- 
Rob Herring (Arm) <robh@kernel.org>



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

* [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 2/6] cpufreq: omap: Drop asm includes Rob Herring (Arm)
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

The qcom-cpufreq-hw driver is relying on an implicit include of io.h
which doesn't get included on some architectures.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index 370fe6a0104b..900d6844c43d 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -9,6 +9,7 @@
 #include <linux/init.h>
 #include <linux/interconnect.h>
 #include <linux/interrupt.h>
+#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>

-- 
2.43.0



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

* [PATCH 2/6] cpufreq: omap: Drop asm includes
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-06 16:00   ` Kevin Hilman
  2024-08-06 13:58 ` [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage Rob Herring (Arm)
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

The omap driver doesn't actually need asm/smp_plat.h, so drop it.
asm/cpu.h is not needed either as linux/cpu.h is already included.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/omap-cpufreq.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
index 3458d5cc9b7f..de8be0a8932d 100644
--- a/drivers/cpufreq/omap-cpufreq.c
+++ b/drivers/cpufreq/omap-cpufreq.c
@@ -28,9 +28,6 @@
 #include <linux/platform_device.h>
 #include <linux/regulator/consumer.h>
 
-#include <asm/smp_plat.h>
-#include <asm/cpu.h>
-
 /* OPP tolerance in percentage */
 #define	OPP_TOLERANCE	4
 

-- 
2.43.0



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

* [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 2/6] cpufreq: omap: Drop asm includes Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr() Rob Herring (Arm)
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

In some build configurations (e.g. x86 allmodconfig), 2 cpu_mask
variables exceeds the max stack frame size:

drivers/cpufreq/armada-8k-cpufreq.c:203:1: error: the frame size of 2128 bytes is larger than 2048 bytes

Fix it by making "cpus" static which is fine given that module init is
only called once.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/armada-8k-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c
index ce5a5641b6dd..7a979db81f09 100644
--- a/drivers/cpufreq/armada-8k-cpufreq.c
+++ b/drivers/cpufreq/armada-8k-cpufreq.c
@@ -132,7 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
 	int ret = 0, opps_index = 0, cpu, nb_cpus;
 	struct freq_table *freq_tables;
 	struct device_node *node;
-	struct cpumask cpus;
+	static struct cpumask cpus;
 
 	node = of_find_matching_node_and_match(NULL, armada_8k_cpufreq_of_match,
 					       NULL);

-- 
2.43.0



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

* [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr()
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
                   ` (2 preceding siblings ...)
  2024-08-06 13:58 ` [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-08 10:48   ` Dhruva Gole
  2024-08-06 13:58 ` [PATCH 5/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

of_match_ptr() is not necessary as the driver is always enabled for DT.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/opp/ti-opp-supply.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index ec0056a4bb13..5f0fb3ea385b 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -405,7 +405,7 @@ static struct platform_driver ti_opp_supply_driver = {
 	.probe = ti_opp_supply_probe,
 	.driver = {
 		   .name = "ti_opp_supply",
-		   .of_match_table = of_match_ptr(ti_opp_supply_of_match),
+		   .of_match_table = ti_opp_supply_of_match,
 		   },
 };
 module_platform_driver(ti_opp_supply_driver);

-- 
2.43.0



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

* [PATCH 5/6] cpufreq: Enable COMPILE_TEST on Arm drivers
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
                   ` (3 preceding siblings ...)
  2024-08-06 13:58 ` [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr() Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-06 13:58 ` [PATCH 6/6] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency " Rob Herring (Arm)
  2024-08-08  3:29 ` [PATCH 0/6] cpufreq: Enable COMPILE_TEST " Viresh Kumar
  6 siblings, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

COMPILE_TEST is useful for build testing without requiring a specific
architecture's compiler. Enable it for most of the Arm CPUFreq drivers.

As Kconfig.arm is only included on ARM and ARM64, COMPILE_TEST is only
enabled for those architectures until that is dropped.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/Kconfig.arm | 50 +++++++++++++++++++++++++++------------------
 1 file changed, 30 insertions(+), 20 deletions(-)

diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index 96b404ce829f..5f7e13e60c80 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -5,7 +5,7 @@
 
 config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
 	tristate "Allwinner nvmem based SUN50I CPUFreq driver"
-	depends on ARCH_SUNXI
+	depends on ARCH_SUNXI || COMPILE_TEST
 	depends on NVMEM_SUNXI_SID
 	select PM_OPP
 	help
@@ -26,15 +26,17 @@ config ARM_APPLE_SOC_CPUFREQ
 
 config ARM_ARMADA_37XX_CPUFREQ
 	tristate "Armada 37xx CPUFreq support"
-	depends on ARCH_MVEBU && CPUFREQ_DT
+	depends on ARCH_MVEBU || COMPILE_TEST
+	depends on CPUFREQ_DT
 	help
 	  This adds the CPUFreq driver support for Marvell Armada 37xx SoCs.
 	  The Armada 37xx PMU supports 4 frequency and VDD levels.
 
 config ARM_ARMADA_8K_CPUFREQ
 	tristate "Armada 8K CPUFreq driver"
-	depends on ARCH_MVEBU && CPUFREQ_DT
-	select ARMADA_AP_CPU_CLK
+	depends on ARCH_MVEBU || COMPILE_TEST
+	depends on CPUFREQ_DT
+	select ARMADA_AP_CPU_CLK if COMMON_CLK
 	help
 	  This enables the CPUFreq driver support for Marvell
 	  Armada8k SOCs.
@@ -56,7 +58,7 @@ config ARM_SCPI_CPUFREQ
 config ARM_VEXPRESS_SPC_CPUFREQ
 	tristate "Versatile Express SPC based CPUfreq driver"
 	depends on ARM_CPU_TOPOLOGY && HAVE_CLK
-	depends on ARCH_VEXPRESS_SPC
+	depends on ARCH_VEXPRESS_SPC || COMPILE_TEST
 	select PM_OPP
 	help
 	  This add the CPUfreq driver support for Versatile Express
@@ -75,7 +77,8 @@ config ARM_BRCMSTB_AVS_CPUFREQ
 
 config ARM_HIGHBANK_CPUFREQ
 	tristate "Calxeda Highbank-based"
-	depends on ARCH_HIGHBANK && CPUFREQ_DT && REGULATOR
+	depends on ARCH_HIGHBANK || COMPILE_TEST
+	depends on CPUFREQ_DT && REGULATOR && PL320_MBOX
 	default m
 	help
 	  This adds the CPUFreq driver for Calxeda Highbank SoC
@@ -96,7 +99,8 @@ config ARM_IMX6Q_CPUFREQ
 
 config ARM_IMX_CPUFREQ_DT
 	tristate "Freescale i.MX8M cpufreq support"
-	depends on ARCH_MXC && CPUFREQ_DT
+	depends on CPUFREQ_DT
+	depends on ARCH_MXC || COMPILE_TEST
 	help
 	  This adds cpufreq driver support for Freescale i.MX7/i.MX8M
 	  series SoCs, based on cpufreq-dt.
@@ -111,7 +115,8 @@ config ARM_KIRKWOOD_CPUFREQ
 
 config ARM_MEDIATEK_CPUFREQ
 	tristate "CPU Frequency scaling support for MediaTek SoCs"
-	depends on ARCH_MEDIATEK && REGULATOR
+	depends on ARCH_MEDIATEK || COMPILE_TEST
+	depends on REGULATOR
 	select PM_OPP
 	help
 	  This adds the CPUFreq driver support for MediaTek SoCs.
@@ -130,12 +135,12 @@ config ARM_MEDIATEK_CPUFREQ_HW
 
 config ARM_OMAP2PLUS_CPUFREQ
 	bool "TI OMAP2+"
-	depends on ARCH_OMAP2PLUS
+	depends on ARCH_OMAP2PLUS || COMPILE_TEST
 	default ARCH_OMAP2PLUS
 
 config ARM_QCOM_CPUFREQ_NVMEM
 	tristate "Qualcomm nvmem based CPUFreq"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	depends on NVMEM_QCOM_QFPROM
 	depends on QCOM_SMEM
 	select PM_OPP
@@ -166,7 +171,7 @@ config ARM_RASPBERRYPI_CPUFREQ
 
 config ARM_S3C64XX_CPUFREQ
 	bool "Samsung S3C64XX"
-	depends on CPU_S3C6410
+	depends on CPU_S3C6410 || COMPILE_TEST
 	default y
 	help
 	  This adds the CPUFreq driver for Samsung S3C6410 SoC.
@@ -175,7 +180,7 @@ config ARM_S3C64XX_CPUFREQ
 
 config ARM_S5PV210_CPUFREQ
 	bool "Samsung S5PV210 and S5PC110"
-	depends on CPU_S5PV210
+	depends on CPU_S5PV210 || COMPILE_TEST
 	default y
 	help
 	  This adds the CPUFreq driver for Samsung S5PV210 and
@@ -199,14 +204,15 @@ config ARM_SCMI_CPUFREQ
 
 config ARM_SPEAR_CPUFREQ
 	bool "SPEAr CPUFreq support"
-	depends on PLAT_SPEAR
+	depends on PLAT_SPEAR || COMPILE_TEST
 	default y
 	help
 	  This adds the CPUFreq driver support for SPEAr SOCs.
 
 config ARM_STI_CPUFREQ
 	tristate "STi CPUFreq support"
-	depends on CPUFREQ_DT && SOC_STIH407
+	depends on CPUFREQ_DT
+	depends on SOC_STIH407 || COMPILE_TEST
 	help
 	  This driver uses the generic OPP framework to match the running
 	  platform with a predefined set of suitable values.  If not provided
@@ -216,34 +222,38 @@ config ARM_STI_CPUFREQ
 
 config ARM_TEGRA20_CPUFREQ
 	tristate "Tegra20/30 CPUFreq support"
-	depends on ARCH_TEGRA && CPUFREQ_DT
+	depends on ARCH_TEGRA || COMPILE_TEST
+	depends on CPUFREQ_DT
 	default y
 	help
 	  This adds the CPUFreq driver support for Tegra20/30 SOCs.
 
 config ARM_TEGRA124_CPUFREQ
 	bool "Tegra124 CPUFreq support"
-	depends on ARCH_TEGRA && CPUFREQ_DT
+	depends on ARCH_TEGRA || COMPILE_TEST
+	depends on CPUFREQ_DT
 	default y
 	help
 	  This adds the CPUFreq driver support for Tegra124 SOCs.
 
 config ARM_TEGRA186_CPUFREQ
 	tristate "Tegra186 CPUFreq support"
-	depends on ARCH_TEGRA && TEGRA_BPMP
+	depends on ARCH_TEGRA || COMPILE_TEST
+	depends on TEGRA_BPMP
 	help
 	  This adds the CPUFreq driver support for Tegra186 SOCs.
 
 config ARM_TEGRA194_CPUFREQ
 	tristate "Tegra194 CPUFreq support"
-	depends on ARCH_TEGRA_194_SOC && TEGRA_BPMP
+	depends on ARCH_TEGRA_194_SOC || (64BIT && COMPILE_TEST)
+	depends on TEGRA_BPMP
 	default y
 	help
 	  This adds CPU frequency driver support for Tegra194 SOCs.
 
 config ARM_TI_CPUFREQ
 	bool "Texas Instruments CPUFreq support"
-	depends on ARCH_OMAP2PLUS || ARCH_K3
+	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
 	default y
 	help
 	  This driver enables valid OPPs on the running platform based on
@@ -255,7 +265,7 @@ config ARM_TI_CPUFREQ
 
 config ARM_PXA2xx_CPUFREQ
 	tristate "Intel PXA2xx CPUfreq driver"
-	depends on PXA27x || PXA25x
+	depends on PXA27x || PXA25x || COMPILE_TEST
 	help
 	  This add the CPUFreq driver support for Intel PXA2xx SOCs.
 

-- 
2.43.0



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

* [PATCH 6/6] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
                   ` (4 preceding siblings ...)
  2024-08-06 13:58 ` [PATCH 5/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
@ 2024-08-06 13:58 ` Rob Herring (Arm)
  2024-08-08  3:29 ` [PATCH 0/6] cpufreq: Enable COMPILE_TEST " Viresh Kumar
  6 siblings, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-06 13:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

The CONFIG_ARM and CONFIG_ARM64 dependency is redundant as all the
drivers have necessary sub-arch dependency and don't depend on the
architecture support.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/Kconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index 10cda6f2fe1d..2561b215432a 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -231,9 +231,7 @@ if X86
 source "drivers/cpufreq/Kconfig.x86"
 endif
 
-if ARM || ARM64
 source "drivers/cpufreq/Kconfig.arm"
-endif
 
 if PPC32 || PPC64
 source "drivers/cpufreq/Kconfig.powerpc"

-- 
2.43.0



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

* Re: [PATCH 2/6] cpufreq: omap: Drop asm includes
  2024-08-06 13:58 ` [PATCH 2/6] cpufreq: omap: Drop asm includes Rob Herring (Arm)
@ 2024-08-06 16:00   ` Kevin Hilman
  2024-08-08 10:46     ` Dhruva Gole
  0 siblings, 1 reply; 11+ messages in thread
From: Kevin Hilman @ 2024-08-06 16:00 UTC (permalink / raw)
  To: Rob Herring (Arm), Rafael J. Wysocki, Viresh Kumar, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd
  Cc: linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

"Rob Herring (Arm)" <robh@kernel.org> writes:

> The omap driver doesn't actually need asm/smp_plat.h, so drop it.
> asm/cpu.h is not needed either as linux/cpu.h is already included.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

Acked-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/cpufreq/omap-cpufreq.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
> index 3458d5cc9b7f..de8be0a8932d 100644
> --- a/drivers/cpufreq/omap-cpufreq.c
> +++ b/drivers/cpufreq/omap-cpufreq.c
> @@ -28,9 +28,6 @@
>  #include <linux/platform_device.h>
>  #include <linux/regulator/consumer.h>
>  
> -#include <asm/smp_plat.h>
> -#include <asm/cpu.h>
> -
>  /* OPP tolerance in percentage */
>  #define	OPP_TOLERANCE	4
>  
>
> -- 
> 2.43.0


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

* Re: [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers
  2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
                   ` (5 preceding siblings ...)
  2024-08-06 13:58 ` [PATCH 6/6] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency " Rob Herring (Arm)
@ 2024-08-08  3:29 ` Viresh Kumar
  6 siblings, 0 replies; 11+ messages in thread
From: Viresh Kumar @ 2024-08-08  3:29 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Rafael J. Wysocki, Kevin Hilman, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Nishanth Menon, Stephen Boyd,
	linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

On 06-08-24, 07:58, Rob Herring (Arm) wrote:
> This series enables building CPUFreq Arm based drivers on multiple 
> architectures when COMPILE_TEST is enabled.
> 
> The drivers for x86 and powerpc appear to be dependent on the 
> respective arch code, so those can't be similarly enabled for 
> COMPILE_TEST.
> 
> I've built this on arm32, arm64, powerpc, and x86 allmodconfig. It's 
> been built by 0-day and I fixed a couple of issues from that. I imagine 
> a few more might crop up when this is added to linux-next.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> Rob Herring (Arm) (6):
>       cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed
>       cpufreq: omap: Drop asm includes
>       cpufreq: armada-8k: Avoid excessive stack usage
>       opp: ti: Drop unnecessary of_match_ptr()
>       cpufreq: Enable COMPILE_TEST on Arm drivers
>       cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers

Applied. Thanks.

-- 
viresh


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

* Re: [PATCH 2/6] cpufreq: omap: Drop asm includes
  2024-08-06 16:00   ` Kevin Hilman
@ 2024-08-08 10:46     ` Dhruva Gole
  0 siblings, 0 replies; 11+ messages in thread
From: Dhruva Gole @ 2024-08-08 10:46 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Rob Herring (Arm), Rafael J. Wysocki, Viresh Kumar, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd, linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

On Aug 06, 2024 at 09:00:12 -0700, Kevin Hilman wrote:
> "Rob Herring (Arm)" <robh@kernel.org> writes:
> 
> > The omap driver doesn't actually need asm/smp_plat.h, so drop it.
> > asm/cpu.h is not needed either as linux/cpu.h is already included.
> >
> > Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> 
> Acked-by: Kevin Hilman <khilman@baylibre.com>

Reviewed-by: Dhruva Gole <d-gole@ti.com>

> 
> > ---
> >  drivers/cpufreq/omap-cpufreq.c | 3 ---
> >  1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
> > index 3458d5cc9b7f..de8be0a8932d 100644
> > --- a/drivers/cpufreq/omap-cpufreq.c
> > +++ b/drivers/cpufreq/omap-cpufreq.c
> > @@ -28,9 +28,6 @@
> >  #include <linux/platform_device.h>
> >  #include <linux/regulator/consumer.h>
> >  
> > -#include <asm/smp_plat.h>
> > -#include <asm/cpu.h>
> > -
> >  /* OPP tolerance in percentage */
> >  #define	OPP_TOLERANCE	4
> >  
> >
> > -- 
> > 2.43.0
> 

-- 
Best regards,
Dhruva


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

* Re: [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr()
  2024-08-06 13:58 ` [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr() Rob Herring (Arm)
@ 2024-08-08 10:48   ` Dhruva Gole
  0 siblings, 0 replies; 11+ messages in thread
From: Dhruva Gole @ 2024-08-08 10:48 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Rafael J. Wysocki, Viresh Kumar, Kevin Hilman, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Nishanth Menon,
	Stephen Boyd, linux-arm-msm, linux-pm, linux-kernel, linux-omap,
	linux-arm-kernel

On Aug 06, 2024 at 07:58:25 -0600, Rob Herring (Arm) wrote:
> of_match_ptr() is not necessary as the driver is always enabled for DT.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>  drivers/opp/ti-opp-supply.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
> index ec0056a4bb13..5f0fb3ea385b 100644
> --- a/drivers/opp/ti-opp-supply.c
> +++ b/drivers/opp/ti-opp-supply.c
> @@ -405,7 +405,7 @@ static struct platform_driver ti_opp_supply_driver = {
>  	.probe = ti_opp_supply_probe,
>  	.driver = {
>  		   .name = "ti_opp_supply",
> -		   .of_match_table = of_match_ptr(ti_opp_supply_of_match),
> +		   .of_match_table = ti_opp_supply_of_match,

Reviewed-by: Dhruva Gole <d-gole@ti.com>

-- 
Best regards,
Dhruva


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

end of thread, other threads:[~2024-08-08 10:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 13:58 [PATCH 0/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
2024-08-06 13:58 ` [PATCH 1/6] cpufreq: qcom: Add explicit io.h include for readl/writel_relaxed Rob Herring (Arm)
2024-08-06 13:58 ` [PATCH 2/6] cpufreq: omap: Drop asm includes Rob Herring (Arm)
2024-08-06 16:00   ` Kevin Hilman
2024-08-08 10:46     ` Dhruva Gole
2024-08-06 13:58 ` [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage Rob Herring (Arm)
2024-08-06 13:58 ` [PATCH 4/6] opp: ti: Drop unnecessary of_match_ptr() Rob Herring (Arm)
2024-08-08 10:48   ` Dhruva Gole
2024-08-06 13:58 ` [PATCH 5/6] cpufreq: Enable COMPILE_TEST on Arm drivers Rob Herring (Arm)
2024-08-06 13:58 ` [PATCH 6/6] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency " Rob Herring (Arm)
2024-08-08  3:29 ` [PATCH 0/6] cpufreq: Enable COMPILE_TEST " Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).