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>
This commit is contained in:
parent
21ee543edc
commit
31f6f291b6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue