mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
net: phy: at803x: finish the phy id checking simplification
The blamed commit was probably not tested on net-next, since it did not refactor the extra phy id check introduced in commitb856150c80
("net: phy: at803x: mask 1000 Base-X link mode"). Fixes:8887ca5474
("net: phy: at803x: simplify custom phy id matching") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7cefb0b0e9
commit
f5621a01c8
@ -703,7 +703,7 @@ static int at803x_get_features(struct phy_device *phydev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID))
|
||||
if (phydev->drv->phy_id != ATH8031_PHY_ID)
|
||||
return 0;
|
||||
|
||||
/* AR8031/AR8033 have different status registers
|
||||
|
Loading…
Reference in New Issue
Block a user