We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cb620b commit 4af7689Copy full SHA for 4af7689
1 file changed
drivers/net/phy/as21xxx.c
@@ -1236,10 +1236,11 @@ static int as21xxx_config_led(struct phy_device *phydev)
1236
static int as21xxx_match_phy_device(struct phy_device *phydev,
1237
const struct phy_driver *phydrv)
1238
{
1239
+ u32 phy_id = aeon_read_pid(phydev);
1240
/* AEONSEMI get pid. */
- phydev->phy_id = aeon_read_pid(phydev);
1241
- if (phydev->phy_id != PHY_ID_AS21XXX)
+ if (phy_id != PHY_ID_AS21XXX)
1242
return 0;
1243
+ phydev->phy_id = phy_id;
1244
aeon_mdio_write(phydev, 0x1E, 0x142, 0x48);
1245
return 1;
1246
}
0 commit comments