]> 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)
committerNils Faerber <nils.faerber@kernelconcepts.de>
Thu, 28 Oct 2010 18:18:28 +0000 (20:18 +0200)
drivers/net/mv643xx_eth.c

index 2d488abcf62d7c789a84583dd1ad7564c00ba80c..44c2fd9838bcd817ea0db12f5d611d1b9ca5d282 100644 (file)
@@ -2792,11 +2792,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;
 }