Skip to contentSkip to conversation

thermal: add COMPILE_TEST (on drivers)

PATCH New Eduardo Valentin 1 participant 11 messages Sep 14, 2015

Subsystems (4)
lore
Share & tools
lore

Eduardo Valentin

author maintainer
#0 lore raw

v2 cover thermal: add COMPILE_TEST (on drivers)

Hi,

This is v2. Now I tested the series with bfin as target, to avoid false positives. The difference from V1:
- Added acked-bys
- Removed patches that could cause compilation issues

BR,

Eduardo Valentin (10):
thermal: hisi: allow compile test
thermal: spear: allow compile test
thermal: rockchip: allow compile test
thermal: kirkwood: allow compile test
thermal: dove: allow compile test
thermal: armada: allow compile test
thermal: exynos: allow compile test
thermal: qcom_spmi: allow compile test
thermal: ti-soc: allow compile test
thermal: ti-soc: Kconfig fix to avoid menu showing wrongly

 drivers/thermal/Kconfig                | 17 +++++++++--------
 drivers/thermal/ti-soc-thermal/Kconfig |  8 +++-----
 2 files changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
2.5.0
author maintainer
#1 lore raw

PATCH v2 1/10 thermal: hisi: allow compile test

Adding COMPILE_TEST flag to hisi driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index 118938e..f2b1d31 100644
@@ -163,7 +163,7 @@ config THERMAL_EMULATION
 
 config HISI_THERMAL
 	tristate "Hisilicon thermal driver"
-	depends on ARCH_HISI && CPU_THERMAL && OF
+	depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
 	help
 	  Enable this to plug hisilicon's thermal sensor driver into the Linux
 	  thermal framework. cpufreq is used as the cooling device to throttle
Signature · 1 line
2.5.0
author maintainer
#2 lore raw

PATCH v2 2/10 thermal: spear: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to spear driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index f2b1d31..0334886 100644
@@ -182,7 +182,7 @@ config IMX_THERMAL
 
 config SPEAR_THERMAL
 	bool "SPEAr thermal sensor driver"
-	depends on PLAT_SPEAR
+	depends on PLAT_SPEAR || COMPILE_TEST
 	depends on OF
 	help
 	  Enable this to plug the SPEAr thermal sensor driver into the Linux
Signature · 1 line
2.5.0
author maintainer
#3 lore raw

PATCH v2 3/10 thermal: rockchip: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to rockchip driver to facilitate maintenance.

Cc Zhang Rui <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc linux-pm at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc linux-rockchip at lists.infradead.org
Cc linux-kernel at vger.kernel.org
---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index 0334886..2e0aaee 100644
@@ -190,7 +190,7 @@ config SPEAR_THERMAL
 
 config ROCKCHIP_THERMAL
 	tristate "Rockchip thermal driver"
-	depends on ARCH_ROCKCHIP
+	depends on ARCH_ROCKCHIP || COMPILE_TEST
 	depends on RESET_CONTROLLER
 	help
 	  Rockchip thermal driver provides support for Temperature sensor
Signature · 1 line
2.5.0
author maintainer
#4 lore raw

PATCH v2 4/10 thermal: kirkwood: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to kirkwood driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index 2e0aaee..f1da24e 100644
@@ -208,7 +208,7 @@ config RCAR_THERMAL
 
 config KIRKWOOD_THERMAL
 	tristate "Temperature sensor on Marvell Kirkwood SoCs"
-	depends on MACH_KIRKWOOD
+	depends on MACH_KIRKWOOD || COMPILE_TEST
 	depends on OF
 	help
 	  Support for the Kirkwood thermal sensor driver into the Linux thermal
Signature · 1 line
2.5.0
author maintainer
#5 lore raw

PATCH v2 5/10 thermal: dove: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to dove driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index f1da24e..b38ce41 100644
@@ -216,7 +216,7 @@ config KIRKWOOD_THERMAL
 
 config DOVE_THERMAL
 	tristate "Temperature sensor on Marvell Dove SoCs"
-	depends on ARCH_DOVE || MACH_DOVE
+	depends on ARCH_DOVE || MACH_DOVE || COMPILE_TEST
 	depends on OF
 	help
 	  Support for the Dove thermal sensor driver in the Linux thermal
Signature · 1 line
2.5.0
author maintainer
#6 lore raw

PATCH v2 6/10 thermal: armada: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to armada driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index b38ce41..c2c8cba 100644
@@ -234,7 +234,7 @@ config DB8500_THERMAL
 
 config ARMADA_THERMAL
 	tristate "Armada 370/XP thermal management"
-	depends on ARCH_MVEBU
+	depends on ARCH_MVEBU || COMPILE_TEST
 	depends on OF
 	help
 	  Enable this option if you want to have support for thermal management
Signature · 1 line
2.5.0
author maintainer
#7 lore raw

PATCH v2 7/10 thermal: exynos: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to exynos driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index c2c8cba..202905e8 100644
@@ -345,7 +345,7 @@ source "drivers/thermal/ti-soc-thermal/Kconfig"
 endmenu
 
 menu "Samsung thermal drivers"
-depends on ARCH_EXYNOS
+depends on ARCH_EXYNOS || COMPILE_TEST
 source "drivers/thermal/samsung/Kconfig"
 endmenu
 
Signature · 1 line
2.5.0
author maintainer
#8 lore raw

PATCH v2 8/10 thermal: qcom_spmi: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to qcom_spmi driver to facilitate maintenance.

---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/Kconfig +1 -1
index 202905e8..63b46c0 100644
@@ -356,7 +356,7 @@ endmenu
 
 config QCOM_SPMI_TEMP_ALARM
 	tristate "Qualcomm SPMI PMIC Temperature Alarm"
-	depends on OF && SPMI && IIO
+	depends on OF && (SPMI || COMPILE_TEST) && IIO
 	select REGMAP_SPMI
 	help
 	  This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
Signature · 1 line
2.5.0
author maintainer
#9 lore raw

PATCH v2 9/10 thermal: ti-soc: allow compile test

In reply to Eduardo Valentin

Adding COMPILE_TEST flag to ti-soc driver to facilitate maintenance.

---
 drivers/thermal/ti-soc-thermal/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/thermal/ti-soc-thermal/Kconfig +4 -4
index bd4c7be..7a24018 100644
@@ -1,7 +1,7 @@
 config TI_SOC_THERMAL
 	tristate "Texas Instruments SoCs temperature sensor driver"
 	depends on THERMAL
-	depends on ARCH_HAS_BANDGAP
+	depends on ARCH_HAS_BANDGAP || COMPILE_TEST
 	help
 	  If you say yes here you get support for the Texas Instruments
 	  OMAP4460+ on die bandgap temperature sensor support. The register
@@ -24,7 +24,7 @@ config TI_THERMAL
 config OMAP4_THERMAL
 	bool "Texas Instruments OMAP4 thermal support"
 	depends on TI_SOC_THERMAL
-	depends on ARCH_OMAP4
+	depends on ARCH_OMAP4 || COMPILE_TEST
 	help
 	  If you say yes here you get thermal support for the Texas Instruments
 	  OMAP4 SoC family. The current chip supported are:
@@ -38,7 +38,7 @@ config OMAP4_THERMAL
 config OMAP5_THERMAL
 	bool "Texas Instruments OMAP5 thermal support"
 	depends on TI_SOC_THERMAL
-	depends on SOC_OMAP5
+	depends on SOC_OMAP5 || COMPILE_TEST
 	help
 	  If you say yes here you get thermal support for the Texas Instruments
 	  OMAP5 SoC family. The current chip supported are:
@@ -50,7 +50,7 @@ config OMAP5_THERMAL
 config DRA752_THERMAL
 	bool "Texas Instruments DRA752 thermal support"
 	depends on TI_SOC_THERMAL
-	depends on SOC_DRA7XX
+	depends on SOC_DRA7XX || COMPILE_TEST
 	help
 	  If you say yes here you get thermal support for the Texas Instruments
 	  DRA752 SoC family. The current chip supported are:
Signature · 1 line
2.5.0
author maintainer
#10 lore raw

PATCH v2 10/10 thermal: ti-soc: Kconfig fix to avoid menu showing wrongly

In reply to Eduardo Valentin

Move the dependencies to menu, so we avoid showing it wrongly.

---
 drivers/thermal/Kconfig                | 1 +
 drivers/thermal/ti-soc-thermal/Kconfig | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/thermal/Kconfig +1 -0
index 63b46c0..9453553 100644
@@ -341,6 +341,7 @@ config ACPI_THERMAL_REL
 	depends on ACPI
 
 menu "Texas Instruments thermal drivers"
+depends on ARCH_HAS_BANDGAP || COMPILE_TEST
 source "drivers/thermal/ti-soc-thermal/Kconfig"
 endmenu
 
drivers/thermal/ti-soc-thermal/Kconfig +0 -2
index 7a24018..cb6686f 100644
@@ -1,7 +1,5 @@
 config TI_SOC_THERMAL
 	tristate "Texas Instruments SoCs temperature sensor driver"
-	depends on THERMAL
-	depends on ARCH_HAS_BANDGAP || COMPILE_TEST
 	help
 	  If you say yes here you get support for the Texas Instruments
 	  OMAP4460+ on die bandgap temperature sensor support. The register
Signature · 1 line
2.5.0