]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net: Call netif_carrier_off at the end of the probe
authorIvan Vecera <ivecera@redhat.com>
Tue, 15 Feb 2011 02:08:39 +0000 (02:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2011 22:09:57 +0000 (14:09 -0800)
commita5da57e51aa8910934072560befb3625d00e0a70
treefb5c67e5bb769601fc7f762b7e86e10f9b7aa30e
parentd96e3b3802449b3c253947334dbc3ae5e54332c7
drivers/net: Call netif_carrier_off at the end of the probe

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>
drivers/net/forcedeth.c
drivers/net/r8169.c