diff mbox

[U-Boot,U-boot,v2,1/5] net: phy: print a number of phy that is not found

Message ID 1413567876-19950-2-git-send-email-ivan.khoronzhuk@ti.com
State Awaiting Upstream
Delegated to: Tom Rini
Headers show

Commit Message

Ivan Khoronzhuk Oct. 17, 2014, 5:44 p.m. UTC
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>
---
 drivers/net/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 23, 2014, 5:14 p.m. UTC | #1
On Fri, Oct 17, 2014 at 08:44:32PM +0300, Khoronzhuk, Ivan wrote:

> 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>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

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);
 }