forked from Openwrt-EcoNet/openwrt
83d962316128 net: phy: realtek: add RTL8127-internal PHY 708686132ba0 net: phy: realtek: Add support for PHY LEDs on RTL8211E be1cc96ddf82 net: phy: realtek: use __set_bit() in rtl8211f_led_hw_control_get() 8c4d0172657c net: phy: realtek: Group RTL82* macro definitions 12d40df259e3 net: phy: realtek: add RTL8211F register defines 7c6fa3ffd265 net: phy: realtek: Clean up RTL821x ExtPage access f3b265358b91 net: phy: realtek: remove unsed RTL821x_PHYSR* macros 7840e4d6f48a net: phy: realtek: Add support for WOL magic packet on RTL8211F Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
28 lines
972 B
Diff
28 lines
972 B
Diff
From 1addfb042a9d27788a0fb2c2935045b56fd8560e Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Thu, 23 Jan 2025 03:25:29 +0000
|
|
Subject: [PATCH] net: phy: realtek: mark existing MMDs as present
|
|
|
|
When using Clause-45 mode to access RealTek RTL8221B 2.5G PHYs some
|
|
versions of the PHY fail to report the MMDs present on the PHY.
|
|
Mark MMDs PMAPMD, PCS and AN which are always existing according to
|
|
the datasheet as present to fix that.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
drivers/net/phy/realtek/realtek_main.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/net/phy/realtek/realtek_main.c
|
|
+++ b/drivers/net/phy/realtek/realtek_main.c
|
|
@@ -1244,6 +1244,9 @@ static int rtl822x_c45_get_features(stru
|
|
linkmode_set_bit(ETHTOOL_LINK_MODE_TP_BIT,
|
|
phydev->supported);
|
|
|
|
+ phydev->c45_ids.mmds_present |= MDIO_DEVS_PMAPMD | MDIO_DEVS_PCS |
|
|
+ MDIO_DEVS_AN;
|
|
+
|
|
return genphy_c45_pma_read_abilities(phydev);
|
|
}
|
|
|