linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reset: sti: allow building under COMPILE_TEST
@ 2024-06-21 15:21 Philipp Zabel
  2024-06-24  6:33 ` Patrice CHOTARD
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2024-06-21 15:21 UTC (permalink / raw)
  To: Patrice Chotard; +Cc: linux-kernel, linux-arm-kernel, kernel, Philipp Zabel

The STIH407 reset driver can be compiled without ARCH_STI being
enabled. Allow it to be built under COMPILE_TEST.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Makefile    | 2 +-
 drivers/reset/sti/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index fd8b49fa46fc..ff716f9afc84 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -2,7 +2,7 @@
 obj-y += core.o
 obj-y += hisilicon/
 obj-y += starfive/
-obj-$(CONFIG_ARCH_STI) += sti/
+obj-y += sti/
 obj-$(CONFIG_ARCH_TEGRA) += tegra/
 obj-$(CONFIG_RESET_A10SR) += reset-a10sr.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
diff --git a/drivers/reset/sti/Kconfig b/drivers/reset/sti/Kconfig
index a2622e146b8b..0b599f7cf6ed 100644
--- a/drivers/reset/sti/Kconfig
+++ b/drivers/reset/sti/Kconfig
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
-if ARCH_STI
+if ARCH_STI || COMPILE_TEST
 
 config STIH407_RESET
-	bool
+	bool "STIH407 Reset Driver" if COMPILE_TEST
 
 endif

---
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
change-id: 20240621-reset-compile-sti-ca6c2ddd0c63

Best regards,
-- 
Philipp Zabel <p.zabel@pengutronix.de>



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

* Re: [PATCH] reset: sti: allow building under COMPILE_TEST
  2024-06-21 15:21 [PATCH] reset: sti: allow building under COMPILE_TEST Philipp Zabel
@ 2024-06-24  6:33 ` Patrice CHOTARD
  0 siblings, 0 replies; 2+ messages in thread
From: Patrice CHOTARD @ 2024-06-24  6:33 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: linux-kernel, linux-arm-kernel, kernel



On 6/21/24 17:21, Philipp Zabel wrote:
> The STIH407 reset driver can be compiled without ARCH_STI being
> enabled. Allow it to be built under COMPILE_TEST.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/reset/Makefile    | 2 +-
>  drivers/reset/sti/Kconfig | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
> index fd8b49fa46fc..ff716f9afc84 100644
> --- a/drivers/reset/Makefile
> +++ b/drivers/reset/Makefile
> @@ -2,7 +2,7 @@
>  obj-y += core.o
>  obj-y += hisilicon/
>  obj-y += starfive/
> -obj-$(CONFIG_ARCH_STI) += sti/
> +obj-y += sti/
>  obj-$(CONFIG_ARCH_TEGRA) += tegra/
>  obj-$(CONFIG_RESET_A10SR) += reset-a10sr.o
>  obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
> diff --git a/drivers/reset/sti/Kconfig b/drivers/reset/sti/Kconfig
> index a2622e146b8b..0b599f7cf6ed 100644
> --- a/drivers/reset/sti/Kconfig
> +++ b/drivers/reset/sti/Kconfig
> @@ -1,7 +1,7 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> -if ARCH_STI
> +if ARCH_STI || COMPILE_TEST
>  
>  config STIH407_RESET
> -	bool
> +	bool "STIH407 Reset Driver" if COMPILE_TEST
>  
>  endif
> 
> ---
> base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
> change-id: 20240621-reset-compile-sti-ca6c2ddd0c63
> 
> Best regards,

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice


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

end of thread, other threads:[~2024-06-24  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 15:21 [PATCH] reset: sti: allow building under COMPILE_TEST Philipp Zabel
2024-06-24  6:33 ` Patrice CHOTARD

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