Skip to content

Commit 423165d

Browse files
committed
generic: fix probe issues with RealTek RTL8221B PHYs with kernel 6.6
1 parent bf229f5 commit 423165d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 1addfb042a9d27788a0fb2c2935045b56fd8560e Mon Sep 17 00:00:00 2001
2+
From: Daniel Golle <daniel@makrotopia.org>
3+
Date: Thu, 23 Jan 2025 03:25:29 +0000
4+
Subject: [PATCH] net: phy: realtek: mark existing MMDs as present
5+
6+
When using Clause-45 mode to access RealTek RTL8221B 2.5G PHYs some
7+
versions of the PHY fail to report the MMDs present on the PHY.
8+
Mark MMDs PMAPMD, PCS and AN which are always existing according to
9+
the datasheet as present to fix that.
10+
11+
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12+
---
13+
/drivers/net/phy/realtek.c | 3 +++
14+
1 file changed, 3 insertions(+)
15+
16+
--- a/drivers/net/phy/realtek.c
17+
+++ b/drivers/net/phy/realtek.c
18+
@@ -1034,6 +1034,9 @@ static int rtl822x_c45_get_features(stru
19+
linkmode_set_bit(ETHTOOL_LINK_MODE_TP_BIT,
20+
phydev->supported);
21+
22+
+ phydev->c45_ids.mmds_present |= MDIO_DEVS_PMAPMD | MDIO_DEVS_PCS |
23+
+ MDIO_DEVS_AN;
24+
+
25+
return genphy_c45_pma_read_abilities(phydev);
26+
}
27+

0 commit comments

Comments
 (0)