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:
97a6caa
)
net/designware: Phy address fix
author
Vipin KUMAR
<vipin.kumar@st.com>
Mon, 26 Mar 2012 00:09:54 +0000
(
00:09
+0000)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 4 Apr 2012 15:46:59 +0000
(10:46 -0500)
The code assumes the phy address to be > 0, which is not true, the phy address
can be in the range 0-31.
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
drivers/net/designware.c
patch
|
blob
|
history
diff --git
a/drivers/net/designware.c
b/drivers/net/designware.c
index ea8a40612e7aeaeaa791418912ecac3c537ae595..fc14b70420615e4b89bbeb08dec9ee6e086c94d8 100644
(file)
--- a/
drivers/net/designware.c
+++ b/
drivers/net/designware.c
@@
-384,7
+384,7
@@
static int configure_phy(struct eth_device *dev)
#if defined(CONFIG_DW_SEARCH_PHY)
phy_addr = find_phy(dev);
- if (phy_addr > 0)
+ if (phy_addr >
=
0)
priv->address = phy_addr;
else
return -1;