diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2009-11-04 16:29:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-11 05:54:40 +0100 |
commit | 37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71 (patch) | |
tree | 079b4bc5a6450e06b6310c083fcb4ab5ee543452 /drivers/net/usb/usbnet.c | |
parent | niu: Use DMA_BIT_MASK(44) instead of deprecated DMA_44BIT_MASK (diff) | |
download | linux-37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71.tar.xz linux-37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71.zip |
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>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r-- | drivers/net/usb/usbnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 378da8c938fe..04f3f289e87c 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -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: |