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)
|
||||
phydev->irq = PHY_POLL;
|
||||
|
||||
netdev_dbg(priv->dev, "%s: attached to PHY (UID 0x%x) Link = %d\n",
|
||||
__func__, phydev->phy_id, phydev->link);
|
||||
|
||||
phy_attached_info(phydev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue