diff options
author | Cliff Clark | 2015-03-24 22:07:26 +0100 |
---|---|---|
committer | David S. Miller | 2015-03-24 23:02:48 +0100 |
commit | 1452db764c279f8b329f1b3b9469bd01d9e21afd (patch) | |
tree | 8059d23e3cd4b9cfc0abd48f59701d686f1abdce /drivers/net/ethernet/freescale/ucc_geth.c | |
parent | Merge branch 'mlx4' (diff) | |
download | kernel-qcow2-linux-1452db764c279f8b329f1b3b9469bd01d9e21afd.tar.gz kernel-qcow2-linux-1452db764c279f8b329f1b3b9469bd01d9e21afd.tar.xz kernel-qcow2-linux-1452db764c279f8b329f1b3b9469bd01d9e21afd.zip |
ucc_geth: Intialize link state to down before register_netdev
ucc_geth was indicating link up after a port is administratively enabled even
when nothing is plugged in. This causes user-space tools to see a spurious link
up the first time after boot.
Signed-off-by: Cliff Clark <cliff_clark@selinc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/ucc_geth.c')
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 357e8b576905..56b774d3a13d 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -3893,6 +3893,9 @@ static int ucc_geth_probe(struct platform_device* ofdev) ugeth->phy_interface = phy_interface; ugeth->max_speed = max_speed; + /* Carrier starts down, phylib will bring it up */ + netif_carrier_off(dev); + err = register_netdev(dev); if (err) { if (netif_msg_probe(ugeth)) |