Skip to contentSkip to conversation

net: mdio: Rearrange Kconfig menus

PATCH Applied Maxime Chevallier 3 participants 6 messages Jul 15 – Jul 22

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover net: mdio: Rearrange Kconfig menus

In menuconfig, all MDIO controllers and muxes are listed directly under the Device drivers -> Network device support menu.

Let's group these in their own subenu :

Device drivers ->
Network device support ->
MDIO controller drivers ->
Mdio driver A
Mdio driver B
...
MDIO Multiplexers ->
MDIO Mux driver A
MDIO Mux driver B
...

There are no functional or KConfig dependency changes in this series, just menu reorganisation.

V2:
- Add mux submenu

V1: https://lore.kernel.org/r/[email protected]

Maxime Chevallier (2):
net: mdio: Kconfig: Group mdio controller drivers in a submenu
net: mdio: Kconfig: Group mdio multiplexers in a submenu

 drivers/net/mdio/Kconfig | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.55.0
#1 lore raw

PATCH v2 1/2 net: mdio: Kconfig: Group mdio controller drivers in a submenu

Currently, all inidivual drivers for MDIO bus controllers are directly listed under Device drivers -> Network device support. Let's group them altogether in a submenu, while keeping the dependency on PHYLIB.

No intended functional change besides the menuconfig ordering.

---
 drivers/net/mdio/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/mdio/Kconfig +3 -3
index e57121019153..b845f1c17843 100644
@@ -3,7 +3,8 @@
 # MDIO Layer Configuration
 #
 
-if PHYLIB
+menu "MDIO controller drivers"
+	depends on PHYLIB
 
 config FWNODE_MDIO
 	def_tristate (ACPI || OF) || COMPILE_TEST
@@ -288,5 +289,4 @@ config MDIO_BUS_MUX_MMIOREG
 
 	  Currently, only 8/16/32 bits registers are supported.
 
-
-endif
+endmenu
Signature · 1 line
2.55.0
#3 lore raw

PATCH v2 2/2 net: mdio: Kconfig: Group mdio multiplexers in a submenu

In reply to Maxime Chevallier

Move all MDIO muxes under the "MDIO controller drivers" submenu.

This doesn't change any dependency for KConfig options and is purely cosmetic.

---
 drivers/net/mdio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mdio/Kconfig +2 -1
index b845f1c17843..a05229838cb4 100644
@@ -199,7 +199,7 @@ config MDIO_THUNDER
 	  ThunderX SoCs when the MDIO bus device appears as a PCI
 	  device.
 
-comment "MDIO Multiplexers"
+menu "MDIO Multiplexers"
 
 config MDIO_BUS_MUX
 	tristate
@@ -290,3 +290,4 @@ config MDIO_BUS_MUX_MMIOREG
 	  Currently, only 8/16/32 bits registers are supported.
 
 endmenu
+endmenu
Signature · 1 line
2.55.0
maintainer Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH net-next v2 1/2] net: mdio: Kconfig: Group mdio controller drivers in a submenu

In reply to Maxime Chevallier
Quoted 7 lines · Maxime Chevallier

Currently, all inidivual drivers for MDIO bus controllers are directly listed under Device drivers -> Network device support. Let's group them altogether in a submenu, while keeping the dependency on PHYLIB.

No intended functional change besides the menuconfig ordering.

Andrew

#5 lore raw
In reply to Maxime Chevallier
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 16 lines · On Wed, 15 Jul 2026 10:22:23 +0200 you wrote:

In menuconfig, all MDIO controllers and muxes are listed directly under the Device drivers -> Network device support menu.

Let's group these in their own subenu :

Device drivers ->
Network device support ->
MDIO controller drivers ->
Mdio driver A
Mdio driver B
...
MDIO Multiplexers ->
MDIO Mux driver A
MDIO Mux driver B
...

Quoted 1 line

[...]

Here is the summary with links:
- [net-next,v2,1/2] net: mdio: Kconfig: Group mdio controller drivers in a submenu

    https://git.kernel.org/netdev/net-next/c/65f1820835f3
  - [net-next,v2,2/2] net: mdio: Kconfig: Group mdio multiplexers in a submenu
    https://git.kernel.org/netdev/net-next/c/8a48eb846f7e

You are awesome, thank you!

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