From: Vladimir Oltean Date: Tue, 20 Jul 2021 17:24:33 +0000 (+0300) Subject: net: phy: at803x: finish the phy id checking simplification X-Git-Tag: v5.15~428^2~436 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5621a01c86beb5dd83407f6e36d7bae43e8a8be;p=platform%2Fkernel%2Flinux-starfive.git 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 commit b856150c8098 ("net: phy: at803x: mask 1000 Base-X link mode"). Fixes: 8887ca5474bd ("net: phy: at803x: simplify custom phy id matching") Signed-off-by: Vladimir Oltean Acked-by: Russell King (Oracle) Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 0790ffc..bdac087 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -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