From: Florian Fainelli Date: Wed, 1 Aug 2012 21:56:54 +0000 (+0000) Subject: [mcs814x] assume the link is up and full-duplex by default X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=3c4ac011e6687157b5f5985259cef06efe360686 [mcs814x] assume the link is up and full-duplex by default SVN-Revision: 32940 --- diff --git a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c index c148bea94a..657fb6a646 100644 --- a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c +++ b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c @@ -885,8 +885,8 @@ static int nuport_mac_mii_probe(struct net_device *dev) phydev->supported &= PHY_BASIC_FEATURES; phydev->advertising = phydev->supported; priv->phydev = phydev; - priv->old_link = 0; - priv->old_duplex = -1; + priv->old_link = 1; + priv->old_duplex = DUPLEX_FULL; dev_info(&priv->pdev->dev, "attached PHY driver [%s] " "(mii_bus:phy_addr=%d)\n",