projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix link status detection in various switch drivers
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
generic-2.6
/
files
/
drivers
/
net
/
phy
/
ar8216.c
diff --git
a/target/linux/generic-2.6/files/drivers/net/phy/ar8216.c
b/target/linux/generic-2.6/files/drivers/net/phy/ar8216.c
index 93e4b33d94c038ba5f3fb9fe60a57f879f1a13c8..92cc9f384b98981b9212cbbc13fdab55c96b75fb 100644
(file)
--- a/
target/linux/generic-2.6/files/drivers/net/phy/ar8216.c
+++ b/
target/linux/generic-2.6/files/drivers/net/phy/ar8216.c
@@
-546,7
+546,7
@@
ar8216_read_status(struct phy_device *phydev)
phydev->speed = SPEED_100;
phydev->duplex = DUPLEX_FULL;
- phydev->
state = PHY_UP
;
+ phydev->
link = 1
;
/* flush the address translation unit */
if (ar8216_wait_bit(priv, AR8216_REG_ATU, AR8216_ATU_ACTIVE, 0))