usbnet: Set link down initially for drivers that update link state
Some usbnet drivers update link state while others do not due to hardware limitations. Add a flag to distinguish those that do, and set the link down initially for their devices. This is intended to fix this bug: http://bugs.debian.org/444043 Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8cbd9623da
commit
37e8273cd3
@@ -1352,9 +1352,11 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
|
||||
// ok, it's ready to go.
|
||||
usb_set_intfdata (udev, dev);
|
||||
|
||||
// start as if the link is up
|
||||
netif_device_attach (net);
|
||||
|
||||
if (dev->driver_info->flags & FLAG_LINK_INTR)
|
||||
netif_carrier_off(net);
|
||||
|
||||
return 0;
|
||||
|
||||
out3:
|
||||
|
Reference in New Issue
Block a user