From: Michael Chan Date: Thu, 14 Feb 2013 12:13:41 +0000 (+0000) Subject: tg3: Set initial carrier state to off. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=402e1398a398009d82731ec433220e172be4c7af;p=linux-beck.git tg3: Set initial carrier state to off. Before the device is opened, the carrier state should be off. It will not race with the link interrupt if we set it before calling register_netdev(). Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 7ac0bd008738..3829321cec54 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -16902,6 +16902,8 @@ static int tg3_init_one(struct pci_dev *pdev, tg3_timer_init(tp); + tg3_carrier_off(tp); + err = register_netdev(dev); if (err) { dev_err(&pdev->dev, "Cannot register net device, aborting\n");