From: Jakub Kicinski Date: Thu, 17 Dec 2015 14:18:44 +0000 (+0000) Subject: nfp: call netif_carrier_off() during init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b402d71d304aa627111fb9d746bb0a75c3989b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nfp: call netif_carrier_off() during init Netdevs default to carrier on, we should call netif_carrier_off() during initialization since we handle carrier state changes in the driver. Signed-off-by: Jakub Kicinski Reviewed-by: Rolf Neugebauer Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index 6c5af4cb5bdc..43c618bafdb6 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -2417,6 +2417,7 @@ int nfp_net_netdev_init(struct net_device *netdev) ether_setup(netdev); netdev->netdev_ops = &nfp_net_netdev_ops; netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000); + netif_carrier_off(netdev); nfp_net_set_ethtool_ops(netdev); nfp_net_irqs_assign(netdev);