net: driver: smsc: set NOCARRIER flag in dev at driver initialization
authorBalakumaran Kannan <kumaran.4353@gmail.com>
Tue, 3 Jun 2014 16:43:48 +0000 (22:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 01:20:38 +0000 (18:20 -0700)
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 <Balakumaran.Kannan@ap.sony.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c

index a0fc151da40db13c20681e04c07d5e923566a14b..5e13fa5524ae911f5516f060a5acdb729fec7be0 100644 (file)
@@ -2477,6 +2477,8 @@ static int smsc911x_drv_probe(struct platform_device *pdev)
                goto out_disable_resources;
        }
 
+       netif_carrier_off(dev);
+
        retval = register_netdev(dev);
        if (retval) {
                SMSC_WARN(pdata, probe, "Error %i registering device", retval);