Commit 1452db76 authored by Cliff Clark's avatar Cliff Clark Committed by David S. Miller

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: default avatarCliff Clark <cliff_clark@selinc.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ad48372
...@@ -3893,6 +3893,9 @@ static int ucc_geth_probe(struct platform_device* ofdev) ...@@ -3893,6 +3893,9 @@ static int ucc_geth_probe(struct platform_device* ofdev)
ugeth->phy_interface = phy_interface; ugeth->phy_interface = phy_interface;
ugeth->max_speed = max_speed; ugeth->max_speed = max_speed;
/* Carrier starts down, phylib will bring it up */
netif_carrier_off(dev);
err = register_netdev(dev); err = register_netdev(dev);
if (err) { if (err) {
if (netif_msg_probe(ugeth)) if (netif_msg_probe(ugeth))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment