aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/altera
diff options
context:
space:
mode:
authorAtsushi Nemoto <nemoto@toshiba-tops.co.jp>2015-09-08 18:15:41 +0900
committerDavid S. Miller <davem@davemloft.net>2015-09-09 12:10:15 -0700
commitd43cefcd68bbc9a67b2c0efe38eb9cf6b5170fe8 (patch)
treee8a1477ee8b4905b5a37dd633292659a0a029df9 /drivers/net/ethernet/altera
parent7845989cb4b3da1db903918c844fccb9817d34a0 (diff)
downloadlinux-d43cefcd68bbc9a67b2c0efe38eb9cf6b5170fe8.tar.gz
net: eth: altera: Fix the initial device operstate
Call netif_carrier_off() prior to register_netdev(), otherwise userspace can see incorrect link state. Signed-off-by: Atsushi Nemoto <nemoto@toshiba-tops.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/altera')
-rw-r--r--drivers/net/ethernet/altera/altera_tse_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index 8207877d6237..fe644823ceaf 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -1517,6 +1517,7 @@ static int altera_tse_probe(struct platform_device *pdev)
spin_lock_init(&priv->tx_lock);
spin_lock_init(&priv->rxdma_irq_lock);
+ netif_carrier_off(ndev);
ret = register_netdev(ndev);
if (ret) {
dev_err(&pdev->dev, "failed to register TSE net device\n");