]> git.karo-electronics.de Git - karo-tx-linux.git/commit
b44: fix carrier detection on bind
authorPaul Fertser <fercerpav@gmail.com>
Mon, 11 Oct 2010 22:45:35 +0000 (15:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:41 +0000 (21:51 -0700)
commit073676f1efde423a75fbfcb3ff4e0cbfaddb7bdb
tree898a18f37aacdff2eb1d22b971cd7ef2258257b3
parent7837447f8b4372ccd19e3b28afff4c901edd3ae1
b44: fix carrier detection on bind

commit bcf64aa379fcadd074449cbf0c049da70071b06f upstream.

For carrier detection to work properly when binding the driver with a cable
unplugged, netif_carrier_off() should be called after register_netdev(),
not before.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/b44.c