Commit 31f6f291 authored by Balakumaran Kannan's avatar Balakumaran Kannan Committed by David S. Miller

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: default avatarBalakumaran <Balakumaran.Kannan@ap.sony.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21ee543e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment