TRIGGER_NETDEV_LINK is available in led_hw_control_set, but missing in led_hw_control_get. Add it. Signed-off-by: Chukun Pan Reviewed-by: Andrew Lunn --- Changes in v2: Collect Reviewed-by --- drivers/net/phy/motorcomm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index e0c6477a53e4..27aee44a420f 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -1919,6 +1919,11 @@ static int yt8521_led_hw_control_get(struct phy_device *phydev, u8 index, if (val & YT8521_LED_10_ON_EN) __set_bit(TRIGGER_NETDEV_LINK_10, rules); + if ((val & YT8521_LED_10_ON_EN) && + (val & YT8521_LED_100_ON_EN) && + (val & YT8521_LED_1000_ON_EN)) + __set_bit(TRIGGER_NETDEV_LINK, rules); + return 0; } -- 2.34.1