Skip to content

Commit 1452db7

Browse files
clifclardavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8ad4837 commit 1452db7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/freescale/ucc_geth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3893,6 +3893,9 @@ static int ucc_geth_probe(struct platform_device* ofdev)
38933893
ugeth->phy_interface = phy_interface;
38943894
ugeth->max_speed = max_speed;
38953895

3896+
/* Carrier starts down, phylib will bring it up */
3897+
netif_carrier_off(dev);
3898+
38963899
err = register_netdev(dev);
38973900
if (err) {
38983901
if (netif_msg_probe(ugeth))

0 commit comments

Comments
 (0)