mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
net: phy: motorcomm: fix duplex setting error for phy leds
fix duplex setting error for phy leds
Fixes: 355b82c54c ("net: phy: motorcomm: Add support for PHY LEDs on YT8521")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260108071409.2750607-1-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
f93fc5d12d
commit
e02f2a0f1f
@@ -1741,10 +1741,10 @@ static int yt8521_led_hw_control_set(struct phy_device *phydev, u8 index,
|
||||
val |= YT8521_LED_1000_ON_EN;
|
||||
|
||||
if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules))
|
||||
val |= YT8521_LED_HDX_ON_EN;
|
||||
val |= YT8521_LED_FDX_ON_EN;
|
||||
|
||||
if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules))
|
||||
val |= YT8521_LED_FDX_ON_EN;
|
||||
val |= YT8521_LED_HDX_ON_EN;
|
||||
|
||||
if (test_bit(TRIGGER_NETDEV_TX, &rules) ||
|
||||
test_bit(TRIGGER_NETDEV_RX, &rules))
|
||||
|
||||
Reference in New Issue
Block a user