Skip to contentSkip to conversation

net: dsa: realtek: don't default Kconfigs to y

PATCH Applied Jakub Kicinski 6 participants 6 messages Feb 4, 2022 – Feb 5, 2022

Subsystems (4)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 net: dsa: realtek: don't default Kconfigs to y

We generally default the vendor to y and the drivers itself to n. NET_DSA_REALTEK, however, selects a whole bunch of things, so it's not a pure "vendor selection" knob. Let's default it all to n.

---
Happy to drop this if someone has a better patch, e.g. making NET_DSA_REALTEK a pure vendor knob!

---
 drivers/net/dsa/realtek/Kconfig | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/dsa/realtek/Kconfig +0 -4
index 5242698143d9..b7427a8292b2 100644
@@ -12,7 +12,6 @@ menuconfig NET_DSA_REALTEK
 config NET_DSA_REALTEK_MDIO
 	tristate "Realtek MDIO connected switch driver"
 	depends on NET_DSA_REALTEK
-	default y
 	help
 	  Select to enable support for registering switches configured
 	  through MDIO.
@@ -20,14 +19,12 @@ config NET_DSA_REALTEK_MDIO
 config NET_DSA_REALTEK_SMI
 	tristate "Realtek SMI connected switch driver"
 	depends on NET_DSA_REALTEK
-	default y
 	help
 	  Select to enable support for registering switches connected
 	  through SMI.
 
 config NET_DSA_REALTEK_RTL8365MB
 	tristate "Realtek RTL8365MB switch subdriver"
-	default y
 	depends on NET_DSA_REALTEK
 	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
 	select NET_DSA_TAG_RTL8_4
@@ -36,7 +33,6 @@ config NET_DSA_REALTEK_RTL8365MB
 
 config NET_DSA_REALTEK_RTL8366RB
 	tristate "Realtek RTL8366RB switch subdriver"
-	default y
 	depends on NET_DSA_REALTEK
 	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
 	select NET_DSA_TAG_RTL4_A
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#2 lore raw
In reply to Jakub Kicinski
Quoted 49 lines · Jakub Kicinski

We generally default the vendor to y and the drivers itself to n. NET_DSA_REALTEK, however, selects a whole bunch of things, so it's not a pure "vendor selection" knob. Let's default it all to n.

---
Happy to drop this if someone has a better patch, e.g. making NET_DSA_REALTEK a pure vendor knob!

---
  drivers/net/dsa/realtek/Kconfig | 4 ----
  1 file changed, 4 deletions(-)
drivers/net/dsa/realtek/Kconfig +0 -3
index 5242698143d9..b7427a8292b2 100644
@@ -12,7 +12,6 @@ menuconfig NET_DSA_REALTEK
  config NET_DSA_REALTEK_MDIO
  	tristate "Realtek MDIO connected switch driver"
  	depends on NET_DSA_REALTEK
-	default y
  	help
  	  Select to enable support for registering switches configured
  	  through MDIO.
@@ -20,14 +19,12 @@ config NET_DSA_REALTEK_MDIO
  config NET_DSA_REALTEK_SMI
  	tristate "Realtek SMI connected switch driver"
  	depends on NET_DSA_REALTEK
-	default y
  	help
  	  Select to enable support for registering switches connected
  	  through SMI.
 
  config NET_DSA_REALTEK_RTL8365MB
  	tristate "Realtek RTL8365MB switch subdriver"
-	default y
  	depends on NET_DSA_REALTEK
  	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
  	select NET_DSA_TAG_RTL8_4

drivers/net/dsa/realtek/Kconfig config NET_DSA_REALTEK_RTL8365MB · line 38

Quoted 7 lines
drivers/net/dsa/realtek/Kconfig +0 -1
@@ -36,7 +33,6 @@ config NET_DSA_REALTEK_RTL8365MB
 
  config NET_DSA_REALTEK_RTL8366RB
  	tristate "Realtek RTL8366RB switch subdriver"
-	default y
  	depends on NET_DSA_REALTEK
  	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
  	select NET_DSA_TAG_RTL4_A

Looks good to me.

Cheers.
Arınç

maintainer Acked-by
#4 lore raw

Em sex., 4 de fev. de 2022 20:55, Linus Walleij
<[email protected]> escreveu:

Quoted 7 lines · Jakub Kicinski
Quoted 5 lines

We generally default the vendor to y and the drivers itself to n. NET_DSA_REALTEK, however, selects a whole bunch of things, so it's not a pure "vendor selection" knob. Let's default it all to n.

Whatever fits better In the kernel default settings policy. The devices where that driver will be used normally work with custom built kernels. The default values have little importance.

#5 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Fri, 4 Feb 2022 07:59:27 -0800 you wrote:

We generally default the vendor to y and the drivers itself to n. NET_DSA_REALTEK, however, selects a whole bunch of things, so it's not a pure "vendor selection" knob. Let's default it all to n.

[...]

Here is the summary with links:
- [net-next] net: dsa: realtek: don't default Kconfigs to y

    https://git.kernel.org/netdev/net-next/c/3115ff3c9d3c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html