Skip to content

Commit

Permalink
net: phy: Kconfig: Fix PHY infrastructure menu in menuconfig
Browse files Browse the repository at this point in the history
Since the integration of PHYLINK, the configuration option which
used to be under the PHY infrastructure menu in menuconfig ended
up one level up (the network device driver section)

By placing PHYLINK option right after PHYLIB entry, it broke the
way Kconfig used to build the menu. See kconfig-language.txt, section
"Menu structure", 2nd method.

This is fixed by placing the PHYLINK option just before PHYLIB.

Fixes: 9525ae8 ("phylink: add phylink infrastructure")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jerome Brunet authored and David S. Miller committed Sep 19, 2017
1 parent fd0e4c5 commit 6073512
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions drivers/net/phy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,6 @@ config MDIO_XGENE

endif

menuconfig PHYLIB
tristate "PHY Device support and infrastructure"
depends on NETDEVICES
select MDIO_DEVICE
help
Ethernet controllers are usually attached to PHY
devices. This option provides infrastructure for
managing PHY devices.

config PHYLINK
tristate
depends on NETDEVICES
Expand All @@ -179,6 +170,15 @@ config PHYLINK
configuration links, PHYs, and Serdes links with MAC level
autonegotiation modes.

menuconfig PHYLIB
tristate "PHY Device support and infrastructure"
depends on NETDEVICES
select MDIO_DEVICE
help
Ethernet controllers are usually attached to PHY
devices. This option provides infrastructure for
managing PHY devices.

if PHYLIB

config SWPHY
Expand Down

0 comments on commit 6073512

Please sign in to comment.