projects
/
openwrt
/
staging
/
luka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b1f494
)
kernel: adm6996: set carrier status
author
Mathias Kresin
<dev@kresin.me>
Tue, 9 Aug 2016 06:11:45 +0000
(08:11 +0200)
committer
John Crispin
<john@phrozen.org>
Wed, 10 Aug 2016 01:04:08 +0000
(
03:04
+0200)
Due to the missing carrier status set, the interface wasn't usable on a
BTHOMEHUB2B after ip link down and up as it is done in preinit.
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/generic/files/drivers/net/phy/adm6996.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/adm6996.c
b/target/linux/generic/files/drivers/net/phy/adm6996.c
index a2ff2b00a54c554cfb4c234c6d138ea7ac7f6295..2fe2ee71bce3f1bdfe914d60fa8876327b2add46 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/adm6996.c
+++ b/
target/linux/generic/files/drivers/net/phy/adm6996.c
@@
-1052,6
+1052,11
@@
static int adm6996_read_status(struct phy_device *phydev)
phydev->speed = SPEED_100;
phydev->duplex = DUPLEX_FULL;
phydev->link = 1;
+
+ phydev->state = PHY_RUNNING;
+ netif_carrier_on(phydev->attached_dev);
+ phydev->adjust_link(phydev->attached_dev);
+
return 0;
}