summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>2014-10-17 20:44:32 +0300
committerTom Rini <trini@ti.com>2014-10-23 11:27:28 -0400
commitadc9a79f3f7c6d79f32048598f4d18cf0f48180f (patch)
treec944a5bfac195410c22735119d4911dba1361c1f /drivers/net/phy
parent496191c7ab55402d82bd3f36ba76b379ca44c666 (diff)
downloadu-boot-imx-adc9a79f3f7c6d79f32048598f4d18cf0f48180f.zip
u-boot-imx-adc9a79f3f7c6d79f32048598f4d18cf0f48180f.tar.gz
u-boot-imx-adc9a79f3f7c6d79f32048598f4d18cf0f48180f.tar.bz2
net: phy: print a number of phy that is not found
In case when several Ethernet ports are supported it's convenient to see the number of phy that is not found. Acked-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 1d6c14f..99b0b83 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -648,7 +648,7 @@ static struct phy_device *get_phy_device_by_mask(struct mii_dev *bus,
if (phydev)
return phydev;
}
- printf("Phy not found\n");
+ printf("Phy %d not found\n", ffs(phy_mask) - 1);
return phy_device_create(bus, ffs(phy_mask) - 1, 0xffffffff, interface);
}