net: dsa: realtek: don't default Kconfigs to y
Jakub Kicinski
maintainerPATCH 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
@@ -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
Quoted 6 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.Signed-off-by Jakub Kicinski <[email protected]>
Signature · 1 line
Florian
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.Signed-off-by Jakub Kicinski <[email protected]>---
Happy to drop this if someone has a better patch, e.g. makingNET_DSA_REALTEKa pure vendor knob!CC Luiz Angelo Daros de Luca <[email protected]>CC Arınç ÜNAL <[email protected]>--- drivers/net/dsa/realtek/Kconfig | 4 ---- 1 file changed, 4 deletions(-)drivers/net/dsa/realtek/Kconfig +0
-3@@ -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ç
Quoted 6 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.Signed-off-by Jakub Kicinski <[email protected]>
Fair enough,
Yours,
Linus Walleij
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.
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.Signed-off-by Jakub Kicinski <[email protected]>[...]
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