We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b36492c commit 581cfd2Copy full SHA for 581cfd2
1 file changed
drivers/net/phy/as21xxx/as21xxx.c
@@ -1527,7 +1527,9 @@ static int aeon_gen1_match_phy_device(struct phy_device *phydev,
1527
return phy_id == phydrv->phy_id;
1528
}
1529
1530
- phydev->phy_id = phy_id;
+ if (phy_id)
1531
+ phydev->phy_id = phy_id;
1532
+
1533
aeon_cl45_write(phydev, MDIO_MMD_VEND1, VEND1_PTP_CLK, 0x48);
1534
if (phydrv->phy_id == PHY_ID_AS21XXX)
1535
aeon_dbg(phydev,
@@ -1551,7 +1553,9 @@ static int aeon_gen2_match_phy_device(struct phy_device *phydev,
1551
1553
return ret;
1552
1554
1555
1556
1557
1558
1559
aeon_dbg(phydev, "gen2 match: read PHY ID=0x%08x, trying driver=%s (0x%08x)\n",
1560
phy_id, phydrv->name, phydrv->phy_id);
1561
if (phy_id == phydrv->phy_id)
0 commit comments