summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalakumaran Kannan <kumaran.4353@gmail.com>2014-06-03 22:13:48 +0530
committerDavid S. Miller <davem@davemloft.net>2014-06-03 18:20:38 -0700
commit31f6f291b618b56ebac441279e4f90292fd6b191 (patch)
tree9ee3fa42b8e56fc3b38d116eff54125ce371df9e
parent21ee543edc0dea36ab58d24523fcd42b8a270df8 (diff)
downloadop-kernel-dev-31f6f291b618b56ebac441279e4f90292fd6b191.zip
op-kernel-dev-31f6f291b618b56ebac441279e4f90292fd6b191.tar.gz
net: driver: smsc: set NOCARRIER flag in dev at 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 <Balakumaran.Kannan@ap.sony.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index a0fc151..5e13fa5 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -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);
OpenPOWER on IntegriCloud