[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5380EAF6.1090402@gmail.com>
Date: Sun, 25 May 2014 00:24:46 +0530
From: Balakumaran Kannan <kumaran.4353@...il.com>
To: steve.glendinning@...well.net, davem@...emloft.net,
netdev@...r.kernel.org
Subject: [PATCH 1/1] driver: net: smsc911x: set NOCARRIER flag in driver initialization
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 <Balakumaran.Kannan@...sony.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists