[source] kernel: adm6996: set carrier status
LEDE Commits
lede-commits at lists.infradead.org
Wed Aug 10 02:16:46 PDT 2016
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=7f2258007893ec02e6c520242bcfb7381787014a
commit 7f2258007893ec02e6c520242bcfb7381787014a
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Tue Aug 9 08:11:45 2016 +0200
kernel: adm6996: set carrier status
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 at kresin.me>
---
target/linux/generic/files/drivers/net/phy/adm6996.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/linux/generic/files/drivers/net/phy/adm6996.c b/target/linux/generic/files/drivers/net/phy/adm6996.c
index a2ff2b0..2fe2ee7 100644
--- 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;
}
More information about the lede-commits
mailing list