mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 20:26:40 +07:00
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
@ -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 New Issue
Block a user