Skip to contentSkip to conversation

soc: nuvoton: Add a menu for Nuvoton SoC drivers

PATCH Superseded Jonathan Neuschäfer 2 participants 7 messages Apr 12, 2023 – Apr 19, 2023

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 soc: nuvoton: Add a menu for Nuvoton SoC drivers

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.

---
v3:
- Split the commit into two
- Reword the commit messages a bit

v2:
- https://lore.kernel.org/lkml/[email protected]/
- Commit message improvements, as suggested by Geert Uytterhoeven.
- Add Link after Reviewed-by, as checkpatch.pl now suggests

---
 drivers/soc/nuvoton/Kconfig | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/soc/nuvoton/Kconfig +6 -1
index df46182088ec2..853392c8a9151 100644
@@ -1,5 +1,8 @@
 # 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
@@ -9,3 +12,5 @@ menuconfig WPCM450_SOC
 
 	  This driver provides information such as the SoC model and
 	  revision.
+
+endmenu

--
2.39.2

#1 lore raw

PATCH v3 2/2 soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver

Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work.

---
v3:
- Split the commit into two
- Reword the commit messages a bit

v2:
- https://lore.kernel.org/lkml/[email protected]/
- Commit message improvements, as suggested by Geert Uytterhoeven.
- Add Link after Reviewed-by, as checkpatch.pl now suggests

---
 drivers/soc/nuvoton/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/nuvoton/Kconfig +1 -0
index 853392c8a9151..2167d3d739d84 100644
@@ -6,6 +6,7 @@ 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.

--
2.39.2

Reviewed-by on v3 2/2
#2 lore raw

Re: [PATCH v3 2/2] soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver

Quoted 11 lines · Jonathan Neuschäfer

Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work.

---
v3:
- Split the commit into two
- Reword the commit messages a bit

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
#3 lore raw

Re: [PATCH v3 2/2] soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver

Quoted 8 lines · Geert Uytterhoeven
Quoted 6 lines · Jonathan Neuschäfer

Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work.

This reference is wrong, it should be 7dbb4a38bff3.

Quoted 1 line
Quoted 1 line

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
Reviewed-by on v3 1/2
#4 lore raw
In reply to Jonathan Neuschäfer
Quoted 4 lines · Jonathan Neuschäfer

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 8 lines

---
v3:
- Split the commit into two
- Reword the commit messages a bit

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
#5 lore raw
Quoted 9 lines · Geert Uytterhoeven
Quoted 7 lines · Jonathan Neuschäfer

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.

This reference is wrong, it should be 7dbb4a38bff3.

Quoted 1 line
Quoted 1 line

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
#6 lore raw
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Geert Uytterhoeven
Quoted 4 lines · Jonathan Neuschäfer

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 5 lines
Quoted 3 lines
Quoted 3 lines

This reference is wrong, it should be 7dbb4a38bff3.

Good catch, I picked a local copy of the patch/commit by accident.

Thanks,
Jonathan