Skip to contentSkip to conversation

net: phy: Re-parent menus for MDIO bus drivers correctly

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 21, 2019 – Mar 24, 2019

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

PATCH 1/1 net: phy: Re-parent menus for MDIO bus drivers correctly

After 90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs") the various MDIO bus drivers were no longer parented with config PHYLIB but with config MDIO_BUS which is not a menuconfig, fix this by depending on MDIO_DEVICE which is a menuconfig.

This is visually nicer and less confusing for users.

Fixes 90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs")
---
 drivers/net/phy/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/Kconfig +3 -0
index 071869db44cf..520657945b82 100644
@@ -7,6 +7,8 @@ menuconfig MDIO_DEVICE
 	help
 	  MDIO devices and driver infrastructure code.
 
+if MDIO_DEVICE
+
 config MDIO_BUS
 	tristate
 	default m if PHYLIB=m
@@ -179,6 +181,7 @@ config MDIO_XGENE
 	  APM X-Gene SoC's.
 
 endif
+endif
 
 config PHYLINK
 	tristate
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

From: Florian Fainelli <[email protected]>
Date: Thu, 21 Mar 2019 16:34:44 -0700

Quoted 9 lines

After 90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs") the various MDIO bus drivers were no longer parented with config PHYLIB but with config MDIO_BUS which is not a menuconfig, fix this by depending on MDIO_DEVICE which is a menuconfig.

This is visually nicer and less confusing for users.

Fixes 90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs")

Applied.