projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20501a6
)
smc911x: Fix external PHY detection
author
Guennadi Liakhovetski
<lg@denx.de>
Sat, 11 Oct 2008 22:07:16 +0000
(15:07 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 11 Oct 2008 22:07:16 +0000
(15:07 -0700)
If an external PHY is found the driver falls through to the default
case in the switch and overwrites the PHY ID. Add the missing break.
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smc911x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/smc911x.c
b/drivers/net/smc911x.c
index 02cc064c2c8b8319836a7f443c6f0ff75867fb79..3d19d00e8eecf1c1af4110b3fd1e1bf6e8327d8b 100644
(file)
--- a/
drivers/net/smc911x.c
+++ b/
drivers/net/smc911x.c
@@
-722,6
+722,9
@@
static void smc911x_phy_detect(struct net_device *dev)
break;
}
}
+ if (phyaddr < 32)
+ /* Found an external PHY */
+ break;
}
default:
/* Internal media only */