Skip to content

Commit e02f2a0

Browse files
Jijie Shaokuba-moo
authored andcommitted
net: phy: motorcomm: fix duplex setting error for phy leds
fix duplex setting error for phy leds Fixes: 355b82c ("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>
1 parent f93fc5d commit e02f2a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/phy/motorcomm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,10 +1741,10 @@ static int yt8521_led_hw_control_set(struct phy_device *phydev, u8 index,
17411741
val |= YT8521_LED_1000_ON_EN;
17421742

17431743
if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules))
1744-
val |= YT8521_LED_HDX_ON_EN;
1744+
val |= YT8521_LED_FDX_ON_EN;
17451745

17461746
if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules))
1747-
val |= YT8521_LED_FDX_ON_EN;
1747+
val |= YT8521_LED_HDX_ON_EN;
17481748

17491749
if (test_bit(TRIGGER_NETDEV_TX, &rules) ||
17501750
test_bit(TRIGGER_NETDEV_RX, &rules))

0 commit comments

Comments
 (0)