All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: reset: POWER_RESET_OCELOT_RESET should depend on Ocelot or Sparx5
@ 2020-10-14 13:14 Geert Uytterhoeven
  2020-10-15 21:13 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-10-14 13:14 UTC (permalink / raw)
  To: Sebastian Reichel, Lars Povlsen
  Cc: linux-pm, linux-kernel, Geert Uytterhoeven

To add support for Sparx5, the dependency on MSCC_OCELOT was removed.
However, this increases exposure of the driver question not only to
Sparx5 platforms, but to everyone.  Hence re-add the dependency on
MSCC_OCELOT, and extend it with ARCH_SPARX5, to prevent asking the user
about this driver when configuring a kernel without Ocelot and Sparx5
support.

Fixes: ec871696b7776767 ("power: reset: ocelot: Add support for Sparx5")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/power/reset/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index 6361569aacb7eedf..d55b3727e00eb768 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -129,6 +129,7 @@ config POWER_RESET_QCOM_PON
 
 config POWER_RESET_OCELOT_RESET
 	bool "Microsemi Ocelot reset driver"
+	depends on MSCC_OCELOT || ARCH_SPARX5 || COMPILE_TEST
 	select MFD_SYSCON
 	help
 	  This driver supports restart for Microsemi Ocelot SoC and similar.
-- 
2.17.1


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

* Re: [PATCH] power: reset: POWER_RESET_OCELOT_RESET should depend on Ocelot or Sparx5
  2020-10-14 13:14 [PATCH] power: reset: POWER_RESET_OCELOT_RESET should depend on Ocelot or Sparx5 Geert Uytterhoeven
@ 2020-10-15 21:13 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2020-10-15 21:13 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Lars Povlsen, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

Hi,

On Wed, Oct 14, 2020 at 03:14:15PM +0200, Geert Uytterhoeven wrote:
> To add support for Sparx5, the dependency on MSCC_OCELOT was removed.
> However, this increases exposure of the driver question not only to
> Sparx5 platforms, but to everyone.  Hence re-add the dependency on
> MSCC_OCELOT, and extend it with ARCH_SPARX5, to prevent asking the user
> about this driver when configuring a kernel without Ocelot and Sparx5
> support.
> 
> Fixes: ec871696b7776767 ("power: reset: ocelot: Add support for Sparx5")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, queued.

-- Sebastian

>  drivers/power/reset/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
> index 6361569aacb7eedf..d55b3727e00eb768 100644
> --- a/drivers/power/reset/Kconfig
> +++ b/drivers/power/reset/Kconfig
> @@ -129,6 +129,7 @@ config POWER_RESET_QCOM_PON
>  
>  config POWER_RESET_OCELOT_RESET
>  	bool "Microsemi Ocelot reset driver"
> +	depends on MSCC_OCELOT || ARCH_SPARX5 || COMPILE_TEST
>  	select MFD_SYSCON
>  	help
>  	  This driver supports restart for Microsemi Ocelot SoC and similar.
> -- 
> 2.17.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-10-15 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 13:14 [PATCH] power: reset: POWER_RESET_OCELOT_RESET should depend on Ocelot or Sparx5 Geert Uytterhoeven
2020-10-15 21:13 ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.