Skip to contentSkip to conversation

soc: nuvoton: Fix Kconfig

PATCH Superseded Jonathan Neuschäfer 2 participants 2 messages Feb 12, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: nuvoton: Fix Kconfig

Unfortunately, version 5 of the Nuvoton WPCM450 SoC driver was applied to bmc.git, which misses a few fixes that were in version 6.

This patch adds the missing fixes:

- Add a menu "Nuvoton SoC drivers" to make it easier to add other Nuvoton SoC drivers later on
- select CONFIG_REGMAP from CONFIG_WPCM450_SOC

Fixes 77b8c67b5637 ("soc: nuvoton: Add SoC info driver for WPCM450")
---
 drivers/soc/nuvoton/Kconfig | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/soc/nuvoton/Kconfig +7 -1
index df46182088ec2..2167d3d739d84 100644
@@ -1,11 +1,17 @@
 # SPDX-License-Identifier: GPL-2.0
-menuconfig WPCM450_SOC
+menu "Nuvoton SoC drivers"
+	depends on ARCH_NPCM || COMPILE_TEST
+
+config WPCM450_SOC
 	tristate "Nuvoton WPCM450 SoC driver"
 	default y if ARCH_WPCM450
 	select SOC_BUS
+	select REGMAP
 	help
 	  Say Y here to compile the SoC information driver for Nuvoton
 	  WPCM450 SoCs.
 
 	  This driver provides information such as the SoC model and
 	  revision.
+
+endmenu

--
2.39.1

#1 lore raw

Hi Jonathan,

Quoted 4 lines · Jonathan Neuschäfer

Unfortunately, version 5 of the Nuvoton WPCM450 SoC driver was applied to bmc.git, which misses a few fixes that were in version 6.

This patch adds the missing fixes:

Thanks for your patch!

Quoted 2 lines

- Add a menu "Nuvoton SoC drivers" to make it easier to add other Nuvoton SoC drivers later on

... and to prevent asking about the Nuvoton WPCM450 SoC driver when configuring a kernel without support for Nuvoton SoCs.

Quoted 1 line

- select CONFIG_REGMAP from CONFIG_WPCM450_SOC

Please include why this is needed.

Quoted 20 lines
Fixes 77b8c67b5637 ("soc: nuvoton: Add SoC info driver for WPCM450")
---
 drivers/soc/nuvoton/Kconfig | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/soc/nuvoton/Kconfig +4 -1
index df46182088ec2..2167d3d739d84 100644
@@ -1,11 +1,17 @@
 # SPDX-License-Identifier: GPL-2.0
-menuconfig WPCM450_SOC
+menu "Nuvoton SoC drivers"
+       depends on ARCH_NPCM || COMPILE_TEST
+
+config WPCM450_SOC
        tristate "Nuvoton WPCM450 SoC driver"

drivers/soc/nuvoton/Kconfig line 16

Quoted 10 lines
drivers/soc/nuvoton/Kconfig +2 -0
        default y if ARCH_WPCM450
        select SOC_BUS
+       select REGMAP
        help
          Say Y here to compile the SoC information driver for Nuvoton
          WPCM450 SoCs.
 
          This driver provides information such as the SoC model and
          revision.
+

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds