Skip to content

Commit

Permalink
net: phy: hide the PHYLIB_LEDS knob
Browse files Browse the repository at this point in the history
commit 4bb7aac ("net: phy: fix circular LEDS_CLASS dependencies")
solved a build failure, but introduces a new config knob with a default
'y' value: PHYLIB_LEDS.

The latter is against the current new config policy. The exception
was raised to allow the user to catch bad configurations without led
support.

Anyway the current definition of PHYLIB_LEDS does not fit the above
goal: if LEDS_CLASS is disabled, the new config will be available
only with PHYLIB disabled, too.

Hide the mentioned config, to preserve the randconfig testing done so
far, while respecting the mentioned policy.

Suggested-by: Andrew Lunn <[email protected]>
Suggested-by: Arnd Bergmann <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Link: https://lore.kernel.org/r/d82489be8ed911c383c3447e9abf469995ccf39a.1682496488.git.pabeni@redhat.com
Signed-off-by: Paolo Abeni <[email protected]>
  • Loading branch information
Paolo Abeni committed Apr 26, 2023
1 parent c248b27 commit 9b78d91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/phy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ config LED_TRIGGER_PHY
for any speed known to the PHY.

config PHYLIB_LEDS
bool "Support probing LEDs from device tree"
def_bool OF
depends on LEDS_CLASS=y || LEDS_CLASS=PHYLIB
depends on OF
default y
help
When LED class support is enabled, phylib can automatically
probe LED setting from device tree.
Expand Down

0 comments on commit 9b78d91

Please sign in to comment.