projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
496191c
)
net: phy: print a number of phy that is not found
author
Khoronzhuk, Ivan
<ivan.khoronzhuk@ti.com>
Fri, 17 Oct 2014 17:44:32 +0000
(20:44 +0300)
committer
Tom Rini
<trini@ti.com>
Thu, 23 Oct 2014 15:27:28 +0000
(11:27 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy.c
b/drivers/net/phy/phy.c
index 1d6c14f2ade7497bc7b2ded23bffce21f250a821..99b0b83631875923a87b4c5e1436977411ba9194 100644
(file)
--- 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);
}