Skip to content

Commit 62bdc8f

Browse files
hkallweitdavem330
authored andcommitted
r8169: fix wrong PHY ID issue with RTL8168dp
As reported in [0] at least one RTL8168dp version has problems establishing a link. This chip version has an integrated RTL8211b PHY, however the chip seems to report a wrong PHY ID, resulting in a wrong PHY driver (for Generic Realtek PHY) being loaded. Work around this issue by adding a hook to r8168dp_2_mdio_read() for returning the correct PHY ID. [0] https://bbs.archlinux.org/viewtopic.php?id=246508 Fixes: 242cd9b ("r8169: use phy_resume/phy_suspend") Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5fc0f21 commit 62bdc8f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/net/ethernet/realtek/r8169_main.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ static int r8168dp_2_mdio_read(struct rtl8169_private *tp, int reg)
10291029
{
10301030
int value;
10311031

1032+
/* Work around issue with chip reporting wrong PHY ID */
1033+
if (reg == MII_PHYSID2)
1034+
return 0xc912;
1035+
10321036
r8168dp_2_mdio_start(tp);
10331037

10341038
value = r8169_mdio_read(tp, reg);

0 commit comments

Comments
 (0)