net: stmmac: print phy information
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 8 Feb 2017 08:31:18 +0000 (09:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:11:26 +0000 (15:11 -0500)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index cc88bdb929dda4df89ac4ae39e55df80346da2e7..9805aa8c599e44745d34b9271e63021cedc4ca32 100644 (file)
@@ -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;
 }