mirror of https://gitee.com/openkylin/linux.git
net: stmmac: print phy information
When a PHY is found, printing which one was found (and which type/model) is a good information to know. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e0a76606d6
commit
b05c76a1f8
|
@ -870,9 +870,7 @@ static int stmmac_init_phy(struct net_device *dev)
|
||||||
if (phydev->is_pseudo_fixed_link)
|
if (phydev->is_pseudo_fixed_link)
|
||||||
phydev->irq = PHY_POLL;
|
phydev->irq = PHY_POLL;
|
||||||
|
|
||||||
netdev_dbg(priv->dev, "%s: attached to PHY (UID 0x%x) Link = %d\n",
|
phy_attached_info(phydev);
|
||||||
__func__, phydev->phy_id, phydev->link);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue