Subject: [PATCH 1/1] driver: net: smsc911x: set NOCARRIER flag in driver initialization

From: Balakumaran Kannan <[email-masked]>
Date: Sun, 25 May 2014 00:24:46 +0530

As smsc driver supports carrier detection, it should unset NOCARRIER
flag only after carrier state determination. By default that flag
is off so driver should set it before starting auto-negotiation

Signed-off-by: Balakumaran Kannan <[email-masked]>
---
 drivers/net/ethernet/smsc/smsc911x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index a0fc151..69016a5 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2525,6 +2525,8 @@ static int smsc911x_drv_probe(struct platform_device *pdev)
 
 	netdev_info(dev, "MAC Address: %pM\n", dev->dev_addr);
 
+	netif_carrier_off(dev);
+
 	return 0;
 
 out_unregister_netdev_5:
-- 
1.8.3.2