From: Mathias Kresin Date: Tue, 9 Aug 2016 06:11:45 +0000 (+0200) Subject: kernel: adm6996: set carrier status X-Git-Tag: v17.01.0-rc1~1768 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7f2258007893ec02e6c520242bcfb7381787014a;p=openwrt%2Fstaging%2Fchunkeey.git 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 --- diff --git a/target/linux/generic/files/drivers/net/phy/adm6996.c b/target/linux/generic/files/drivers/net/phy/adm6996.c index a2ff2b00a5..2fe2ee71bc 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; }