linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 01/10] reset: ath79: add driver Kconfig option
@ 2016-08-30  8:24 Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 02/10] reset: berlin: " Philipp Zabel
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Acked-by: Aban Bedel <albeu@free.fr>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 7 +++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 7dfe8d8..9da0507 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -14,6 +14,13 @@ menuconfig RESET_CONTROLLER
 
 if RESET_CONTROLLER
 
+config RESET_ATH79
+	bool "AR71xx Reset Driver" if COMPILE_TEST
+	default ATH79
+	help
+	  This enables the ATH79 reset controller driver that supports the
+	  AR71xx SoC reset controller.
+
 config RESET_OXNAS
 	bool
 
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 9b45dcf..e3fc337 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -9,7 +9,7 @@ obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
-obj-$(CONFIG_ATH79) += reset-ath79.o
+obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 02/10] reset: berlin: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-09-28 19:21   ` Sebastian Hesselbarth
  2016-08-30  8:24 ` [PATCH v2 03/10] reset: lpc18xx: " Philipp Zabel
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel,
	Antoine Tenart, Sebastian Hesselbarth

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 9da0507..1194cbe 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -21,6 +21,12 @@ config RESET_ATH79
 	  This enables the ATH79 reset controller driver that supports the
 	  AR71xx SoC reset controller.
 
+config RESET_BERLIN
+	bool "Berlin Reset Driver" if COMPILE_TEST
+	default ARCH_BERLIN
+	help
+	  This enables the reset controller driver for Marvell Berlin SoCs.
+
 config RESET_OXNAS
 	bool
 
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index e3fc337..34c0b23 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,7 +1,6 @@
 obj-y += core.o
 obj-$(CONFIG_ARCH_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
-obj-$(CONFIG_ARCH_BERLIN) += reset-berlin.o
 obj-$(CONFIG_MACH_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_ARCH_MESON) += reset-meson.o
 obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
@@ -10,6 +9,7 @@ obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
+obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 03/10] reset: lpc18xx: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 02/10] reset: berlin: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 04/10] reset: meson: " Philipp Zabel
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Acked-by: Joachim Eastwood <manabian@gmail.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v1:
 - Fixed Kconfig option help text
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 1194cbe..72c9b78 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -27,6 +27,12 @@ config RESET_BERLIN
 	help
 	  This enables the reset controller driver for Marvell Berlin SoCs.
 
+config RESET_LPC18XX
+	bool "LPC18xx/43xx Reset Driver" if COMPILE_TEST
+	default ARCH_LPC18XX
+	help
+	  This enables the reset controller driver for NXP LPC18xx/43xx SoCs.
+
 config RESET_OXNAS
 	bool
 
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 34c0b23..25aa05a 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,5 +1,4 @@
 obj-y += core.o
-obj-$(CONFIG_ARCH_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_MACH_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_ARCH_MESON) += reset-meson.o
@@ -10,6 +9,7 @@ obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
+obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 04/10] reset: meson: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 02/10] reset: berlin: " Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 03/10] reset: lpc18xx: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 05/10] reset: pistachio: " Philipp Zabel
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 72c9b78..3fa6afe 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -33,6 +33,12 @@ config RESET_LPC18XX
 	help
 	  This enables the reset controller driver for NXP LPC18xx/43xx SoCs.
 
+config RESET_MESON
+	bool "Meson Reset Driver" if COMPILE_TEST
+	default ARCH_MESON
+	help
+	  This enables the reset driver for Amlogic Meson SoCs.
+
 config RESET_OXNAS
 	bool
 
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 25aa05a..1408cba 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,7 +1,6 @@
 obj-y += core.o
 obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_MACH_PISTACHIO) += reset-pistachio.o
-obj-$(CONFIG_ARCH_MESON) += reset-meson.o
 obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
 obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
@@ -10,6 +9,7 @@ obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
+obj-$(CONFIG_RESET_MESON) += reset-meson.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 05/10] reset: pistachio: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (2 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 04/10] reset: meson: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 06/10] reset: socfpga: " Philipp Zabel
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel,
	Damien Horsley

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Cc: Damien Horsley <Damien.Horsley@imgtec.com>
Acked-by: James Hartley <james.hartley@imgtec.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 3fa6afe..8bb1d87 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -42,6 +42,12 @@ config RESET_MESON
 config RESET_OXNAS
 	bool
 
+config RESET_PISTACHIO
+	bool "Pistachio Reset Driver" if COMPILE_TEST
+	default MACH_PISTACHIO
+	help
+	  This enables the reset driver for ImgTec Pistachio SoCs.
+
 config TI_SYSCON_RESET
 	tristate "TI SYSCON Reset Driver"
 	depends on HAS_IOMEM
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 1408cba..c796a14 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,6 +1,5 @@
 obj-y += core.o
 obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
-obj-$(CONFIG_MACH_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
 obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
@@ -11,5 +10,6 @@ obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_RESET_MESON) += reset-meson.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
+obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 06/10] reset: socfpga: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (3 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 05/10] reset: pistachio: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 07/10] reset: stm32: " Philipp Zabel
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v1:
 - Use "SoCFPGA" instead of "Soc FPGA".
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 8bb1d87..fc0947f 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -48,6 +48,12 @@ config RESET_PISTACHIO
 	help
 	  This enables the reset driver for ImgTec Pistachio SoCs.
 
+config RESET_SOCFPGA
+	bool "SoCFPGA Reset Driver" if COMPILE_TEST
+	default ARCH_SOCFPGA
+	help
+	  This enables the reset controller driver for Altera SoCFPGAs.
+
 config TI_SYSCON_RESET
 	tristate "TI SYSCON Reset Driver"
 	depends on HAS_IOMEM
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index c796a14..61e4c64 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,5 +1,4 @@
 obj-y += core.o
-obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
 obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
@@ -11,5 +10,6 @@ obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
 obj-$(CONFIG_RESET_MESON) += reset-meson.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
+obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 07/10] reset: stm32: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (4 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 06/10] reset: socfpga: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-09-03 10:47   ` Maxime Coquelin
  2016-08-30  8:24 ` [PATCH v2 08/10] reset: sunxi: " Philipp Zabel
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel,
	Maxime Coquelin, Gabriel Fernandez

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Gabriel Fernandez <gabriel.fernandez@st.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index fc0947f..afcbb99 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -54,6 +54,12 @@ config RESET_SOCFPGA
 	help
 	  This enables the reset controller driver for Altera SoCFPGAs.
 
+config RESET_STM32
+	bool "STM32 Reset Driver" if COMPILE_TEST
+	default ARCH_STM32
+	help
+	  This enables the RCC reset controller driver for STM32 MCUs.
+
 config TI_SYSCON_RESET
 	tristate "TI SYSCON Reset Driver"
 	depends on HAS_IOMEM
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 61e4c64..6276f82 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,5 +1,4 @@
 obj-y += core.o
-obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
 obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
@@ -11,5 +10,6 @@ obj-$(CONFIG_RESET_MESON) += reset-meson.o
 obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
+obj-$(CONFIG_RESET_STM32) += reset-stm32.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 08/10] reset: sunxi: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (5 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 07/10] reset: stm32: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 09/10] reset: zynq: " Philipp Zabel
  2016-08-30  8:24 ` [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures Philipp Zabel
  8 siblings, 0 replies; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v1:
 - Force-enable RESET_SUNXI if ARCH_SUNXI is enabled, since the platform
   code calls our init functions.
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index afcbb99..7f748af 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -60,6 +60,12 @@ config RESET_STM32
 	help
 	  This enables the RCC reset controller driver for STM32 MCUs.
 
+config RESET_SUNXI
+	bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI
+	default ARCH_SUNXI
+	help
+	  This enables the reset driver for Allwinner SoCs.
+
 config TI_SYSCON_RESET
 	tristate "TI SYSCON Reset Driver"
 	depends on HAS_IOMEM
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 6276f82..4a163c7 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,5 +1,4 @@
 obj-y += core.o
-obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
@@ -11,5 +10,6 @@ obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
 obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o
 obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_RESET_STM32) += reset-stm32.o
+obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
-- 
2.8.1

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

* [PATCH v2 09/10] reset: zynq: add driver Kconfig option
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (6 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 08/10] reset: sunxi: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30 10:01   ` Michal Simek
  2016-08-30  8:24 ` [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures Philipp Zabel
  8 siblings, 1 reply; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel,
	Moritz Fischer, Michal Simek, Sören Brinkmann

Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Cc: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v1:
 - Fix alphabetical order of Kconfig options
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 7f748af..06d9fa2 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -86,6 +86,12 @@ config RESET_UNIPHIER
 	  Say Y if you want to control reset signals provided by System Control
 	  block, Media I/O block, Peripheral Block.
 
+config RESET_ZYNQ
+	bool "ZYNQ Reset Driver" if COMPILE_TEST
+	default ARCH_ZYNQ
+	help
+	  This enables the reset controller driver for Xilinx Zynq SoCs.
+
 source "drivers/reset/sti/Kconfig"
 source "drivers/reset/hisilicon/Kconfig"
 
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 4a163c7..56f90ea 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,7 +1,6 @@
 obj-y += core.o
 obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
-obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
@@ -13,3 +12,4 @@ obj-$(CONFIG_RESET_STM32) += reset-stm32.o
 obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
+obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o
-- 
2.8.1

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

* [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures
  2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
                   ` (7 preceding siblings ...)
  2016-08-30  8:24 ` [PATCH v2 09/10] reset: zynq: " Philipp Zabel
@ 2016-08-30  8:24 ` Philipp Zabel
  2016-08-30 10:04   ` Masahiro Yamada
  8 siblings, 1 reply; 14+ messages in thread
From: Philipp Zabel @ 2016-08-30  8:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Philipp Zabel,
	Chen Feng

Also remove the RESET_CONTROLLER dependency, this Kconfig file is
included inside the menuconfig already.

Cc: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v1:
 - To build without ARCH_HISI enabled, add hisilicon/ to obj-y
   unconditionally.
---
 drivers/reset/Makefile          | 2 +-
 drivers/reset/hisilicon/Kconfig | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 56f90ea..bbe7026 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,6 +1,6 @@
 obj-y += core.o
+obj-y += hisilicon/
 obj-$(CONFIG_ARCH_STI) += sti/
-obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
diff --git a/drivers/reset/hisilicon/Kconfig b/drivers/reset/hisilicon/Kconfig
index 26bf95a..1ff8b0c 100644
--- a/drivers/reset/hisilicon/Kconfig
+++ b/drivers/reset/hisilicon/Kconfig
@@ -1,5 +1,6 @@
 config COMMON_RESET_HI6220
 	tristate "Hi6220 Reset Driver"
-	depends on (ARCH_HISI && RESET_CONTROLLER)
+	depends on ARCH_HISI || COMPILE_TEST
+	default ARCH_HISI
 	help
 	  Build the Hisilicon Hi6220 reset driver.
-- 
2.8.1

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

* Re: [PATCH v2 09/10] reset: zynq: add driver Kconfig option
  2016-08-30  8:24 ` [PATCH v2 09/10] reset: zynq: " Philipp Zabel
@ 2016-08-30 10:01   ` Michal Simek
  0 siblings, 0 replies; 14+ messages in thread
From: Michal Simek @ 2016-08-30 10:01 UTC (permalink / raw)
  To: Philipp Zabel, linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Moritz Fischer,
	Michal Simek, Sören Brinkmann

On 30.8.2016 10:24, Philipp Zabel wrote:
> Visible only if COMPILE_TEST is enabled, this allows to include the
> driver in build tests.
> 
> Cc: Moritz Fischer <moritz.fischer@ettus.com>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> Changes since v1:
>  - Fix alphabetical order of Kconfig options
> ---
>  drivers/reset/Kconfig  | 6 ++++++
>  drivers/reset/Makefile | 2 +-
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> index 7f748af..06d9fa2 100644
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -86,6 +86,12 @@ config RESET_UNIPHIER
>  	  Say Y if you want to control reset signals provided by System Control
>  	  block, Media I/O block, Peripheral Block.
>  
> +config RESET_ZYNQ
> +	bool "ZYNQ Reset Driver" if COMPILE_TEST
> +	default ARCH_ZYNQ
> +	help
> +	  This enables the reset controller driver for Xilinx Zynq SoCs.
> +
>  source "drivers/reset/sti/Kconfig"
>  source "drivers/reset/hisilicon/Kconfig"
>  
> diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
> index 4a163c7..56f90ea 100644
> --- a/drivers/reset/Makefile
> +++ b/drivers/reset/Makefile
> @@ -1,7 +1,6 @@
>  obj-y += core.o
>  obj-$(CONFIG_ARCH_STI) += sti/
>  obj-$(CONFIG_ARCH_HISI) += hisilicon/
> -obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
>  obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
>  obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
>  obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
> @@ -13,3 +12,4 @@ obj-$(CONFIG_RESET_STM32) += reset-stm32.o
>  obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
>  obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
>  obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
> +obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o
> 

Acked-by: Michal Simek <michal.simek@xilinx.com>

Thanks,
Michal

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

* Re: [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures
  2016-08-30  8:24 ` [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures Philipp Zabel
@ 2016-08-30 10:04   ` Masahiro Yamada
  0 siblings, 0 replies; 14+ messages in thread
From: Masahiro Yamada @ 2016-08-30 10:04 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Linux Kernel Mailing List, Arnd Bergmann, Axel Lin,
	Hans de Goede, Maxime Ripard, Lee Jones, linux-arm-kernel,
	Chen Feng

2016-08-30 17:24 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> Also remove the RESET_CONTROLLER dependency, this Kconfig file is
> included inside the menuconfig already.
>
> Cc: Chen Feng <puck.chen@hisilicon.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>





-- 
Best Regards
Masahiro Yamada

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

* Re: [PATCH v2 07/10] reset: stm32: add driver Kconfig option
  2016-08-30  8:24 ` [PATCH v2 07/10] reset: stm32: " Philipp Zabel
@ 2016-09-03 10:47   ` Maxime Coquelin
  0 siblings, 0 replies; 14+ messages in thread
From: Maxime Coquelin @ 2016-09-03 10:47 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: linux-kernel, Masahiro Yamada, Arnd Bergmann, Axel Lin,
	Hans de Goede, Maxime Ripard, Lee Jones, linux-arm-kernel,
	Gabriel Fernandez

2016-08-30 10:24 GMT+02:00 Philipp Zabel <p.zabel@pengutronix.de>:
> Visible only if COMPILE_TEST is enabled, this allows to include the
> driver in build tests.
>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Gabriel Fernandez <gabriel.fernandez@st.com>
> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/reset/Kconfig  | 6 ++++++
>  drivers/reset/Makefile | 2 +-
>  2 files changed, 7 insertions(+), 1 deletion(-)

In line with what we did on other stm32 drivers:
Reviewed-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>

Thanks!
Maxime

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

* Re: [PATCH v2 02/10] reset: berlin: add driver Kconfig option
  2016-08-30  8:24 ` [PATCH v2 02/10] reset: berlin: " Philipp Zabel
@ 2016-09-28 19:21   ` Sebastian Hesselbarth
  0 siblings, 0 replies; 14+ messages in thread
From: Sebastian Hesselbarth @ 2016-09-28 19:21 UTC (permalink / raw)
  To: Philipp Zabel, linux-kernel
  Cc: Masahiro Yamada, Arnd Bergmann, Axel Lin, Hans de Goede,
	Maxime Ripard, Lee Jones, linux-arm-kernel, Antoine Tenart

On 30.08.2016 10:24, Philipp Zabel wrote:
> Visible only if COMPILE_TEST is enabled, this allows to include the
> driver in build tests.
>
> Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

Sorry for the late reply, FWIW

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>


> ---
>   drivers/reset/Kconfig  | 6 ++++++
>   drivers/reset/Makefile | 2 +-
>   2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> index 9da0507..1194cbe 100644
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -21,6 +21,12 @@ config RESET_ATH79
>   	  This enables the ATH79 reset controller driver that supports the
>   	  AR71xx SoC reset controller.
>
> +config RESET_BERLIN
> +	bool "Berlin Reset Driver" if COMPILE_TEST
> +	default ARCH_BERLIN
> +	help
> +	  This enables the reset controller driver for Marvell Berlin SoCs.
> +
>   config RESET_OXNAS
>   	bool
>
> diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
> index e3fc337..34c0b23 100644
> --- a/drivers/reset/Makefile
> +++ b/drivers/reset/Makefile
> @@ -1,7 +1,6 @@
>   obj-y += core.o
>   obj-$(CONFIG_ARCH_LPC18XX) += reset-lpc18xx.o
>   obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
> -obj-$(CONFIG_ARCH_BERLIN) += reset-berlin.o
>   obj-$(CONFIG_MACH_PISTACHIO) += reset-pistachio.o
>   obj-$(CONFIG_ARCH_MESON) += reset-meson.o
>   obj-$(CONFIG_ARCH_STM32) += reset-stm32.o
> @@ -10,6 +9,7 @@ obj-$(CONFIG_ARCH_STI) += sti/
>   obj-$(CONFIG_ARCH_HISI) += hisilicon/
>   obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
>   obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
> +obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
>   obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o
>   obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
>   obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
>

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

end of thread, other threads:[~2016-09-28 19:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30  8:24 [PATCH v2 01/10] reset: ath79: add driver Kconfig option Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 02/10] reset: berlin: " Philipp Zabel
2016-09-28 19:21   ` Sebastian Hesselbarth
2016-08-30  8:24 ` [PATCH v2 03/10] reset: lpc18xx: " Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 04/10] reset: meson: " Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 05/10] reset: pistachio: " Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 06/10] reset: socfpga: " Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 07/10] reset: stm32: " Philipp Zabel
2016-09-03 10:47   ` Maxime Coquelin
2016-08-30  8:24 ` [PATCH v2 08/10] reset: sunxi: " Philipp Zabel
2016-08-30  8:24 ` [PATCH v2 09/10] reset: zynq: " Philipp Zabel
2016-08-30 10:01   ` Michal Simek
2016-08-30  8:24 ` [PATCH v2 10/10] reset: hi6220: allow to compile test driver on other architectures Philipp Zabel
2016-08-30 10:04   ` Masahiro Yamada

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).