[PATCH 2/5] de2104x: Call netif_carrier_off() after register_netdev()

2012-08-14 Thread Ilya Shchepetkov
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. Calling netif_carrier_off() before register_netdev() was causing the network interface to miss a linkwatch pending event leading to an

[PATCH 2/5] de2104x: Call netif_carrier_off() after register_netdev()

2012-08-14 Thread Ilya Shchepetkov
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. Calling netif_carrier_off() before register_netdev() was causing the network interface to miss a linkwatch pending event leading to an