drivers/net: Call netif_carrier_off at the end of the probe
commitfea891e387dbd48bbe13d5a588059e879eaa8dfe
authorIvan Vecera <ivecera@redhat.com>
Tue, 15 Feb 2011 02:08:39 +0000 (15 02:08 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 21:17:39 +0000 (14 14:17 -0700)
treedf3dea205eaf6a8352b3437e3b51fe604e5ba451
parent30b7cb312baeab0504e4ba1bc5b324abf7afcf68
drivers/net: Call netif_carrier_off at the end of the probe

commit 0d672e9f8ac320c6d1ea9103db6df7f99ea20361 upstream.

Without calling of netif_carrier_off at the end of the probe the operstate
is unknown when the device is initially opened. By default the carrier is
on so when the device is opened and netif_carrier_on is called the link
watch event is not fired and operstate remains zero (unknown).

This patch fixes this behavior in forcedeth and r8169.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/forcedeth.c
drivers/net/r8169.c