[PATCH 2/2] net: phy: motorcomm: add missing trigger link for YT8521
From: Chukun Pan
Date: Tue Nov 10 2026 - 06:04:36 EST
TRIGGER_NETDEV_LINK is available in led_hw_control_set,
but missing in led_hw_control_get. Add it.
Signed-off-by: Chukun Pan <amadeus@xxxxxxxxxx>
---
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 bcd3afef0d49..5b1d17bd231a 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -1901,6 +1901,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