Skip to content

Commit a8abe8e

Browse files
1715173329kuba-moo
authored andcommitted
net: phy: motorcomm: Add support for PHY LEDs on YT8531
The LED registers on YT8531 are exactly same as YT8521, so simply reuse yt8521_led_hw_* functions. Tested on OrangePi R1 Plus LTS and Zero3. Signed-off-by: Tianling Shen <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Jijie Shao<[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 61958b3 commit a8abe8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/phy/motorcomm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,6 +3048,9 @@ static struct phy_driver motorcomm_phy_drvs[] = {
30483048
.get_wol = ytphy_get_wol,
30493049
.set_wol = yt8531_set_wol,
30503050
.link_change_notify = yt8531_link_change_notify,
3051+
.led_hw_is_supported = yt8521_led_hw_is_supported,
3052+
.led_hw_control_set = yt8521_led_hw_control_set,
3053+
.led_hw_control_get = yt8521_led_hw_control_get,
30513054
},
30523055
{
30533056
PHY_ID_MATCH_EXACT(PHY_ID_YT8531S),

0 commit comments

Comments
 (0)