From: Javen Xu <redacted>
RTL8261D is also 10g phy. It's sub_phy_id is 0x81. And it does not need
any firmware.
Signed-off-by: Javen Xu <redacted>
---
Changes in v10:
- no changes. New file.
---
drivers/net/phy/realtek/realtek_main.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
index ba218559f39c..1c0b9c40a81e 100644
--- a/drivers/net/phy/realtek/realtek_main.c
+++ b/drivers/net/phy/realtek/realtek_main.c
@@ -260,6 +260,7 @@
#define RTL_8261C_CG 0x001cc898
#define RTL8261C_CE_MODEL 0x00
+#define RTL8261D_MODEL 0x81
#define RTL8261X_INT_AUTONEG_ERROR BIT(0)
#define RTL8261X_INT_PAGE_RECV BIT(2)
#define RTL8261X_INT_AUTONEG_DONE BIT(3)
@@ -413,6 +414,10 @@ static int rtl8261x_probe(struct phy_device *phydev)
phydev_info(phydev, "RTL8261C detected (sub_id 0x%02x)\n", sub_phy_id);
break;
+ case RTL8261D_MODEL:
+ phydev_info(phydev, "RTL8261D detected (sub_id 0x%02x)\n", sub_phy_id);
+ break;
+
default:
phydev_warn(phydev, "Unknown sub_id 0x%02x, default behavior\n", sub_phy_id);
return -ENODEV;
@@ -3397,7 +3402,7 @@ static struct phy_driver realtek_drvs[] = {
.write_mmd = genphy_write_mmd_unsupported,
}, {
PHY_ID_MATCH_EXACT(RTL_8261C_CG),
- .name = "Realtek RTL8261C 10Gbps PHY",
+ .name = "Realtek RTL8261 10Gbps PHY",
.probe = rtl8261x_probe,
.config_init = rtl8261x_config_init,
.get_features = rtl8261x_get_features,--
2.43.0