]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Print MII bus address of discovered PHYs
authorNils Faerber <nils.faerber@kernelconcepts.de>
Thu, 28 Oct 2010 18:18:28 +0000 (20:18 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Sat, 8 Feb 2014 22:13:53 +0000 (23:13 +0100)
drivers/net/ethernet/marvell/mv643xx_eth.c

index 5e1ca0f0509098dd6e571b289df35f8886d7b21d..8058831590d0d2794246e33894d61027fbddf09d 100644 (file)
@@ -2783,11 +2783,13 @@ static struct phy_device *phy_scan(struct mv643xx_eth_private *mp,
 
                if (phydev == NULL) {
                        phydev = bus->phy_map[addr];
-                       if (phydev != NULL)
+                       if (phydev != NULL) {
                                phy_addr_set(mp, addr);
+                               printk(KERN_INFO "mv643xx_eth: found PHY @ %d ID %08x\n", phydev->addr, phydev->phy_id);
+                       } else
+                               printk(KERN_ERR "mv643xx_eth: PHY @ %d not found!\n", addr);
                }
        }
-
        return phydev;
 }