From: Balakumaran Kannan Date: Tue, 3 Jun 2014 16:43:48 +0000 (+0530) Subject: net: driver: smsc: set NOCARRIER flag in dev at driver initialization X-Git-Tag: v5.15~17769^2~8^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31f6f291b618b56ebac441279e4f90292fd6b191;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- 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);