summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/cdc_ether.c
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-11-04 15:29:52 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-10 20:54:40 -0800
commit37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71 (patch)
tree079b4bc5a6450e06b6310c083fcb4ab5ee543452 /drivers/net/usb/cdc_ether.c
parent8cbd9623da7e7a99c6bd0f0b7d21d17c233c6abb (diff)
downloadlinux-37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71.tar.gz
linux-37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71.tar.bz2
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/cdc_ether.c')
-rw-r--r--drivers/net/usb/cdc_ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 71d7ff3de99f..7ec24c9b2535 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -413,7 +413,7 @@ static int cdc_bind(struct usbnet *dev, struct usb_interface *intf)
static const struct driver_info cdc_info = {
.description = "CDC Ethernet Device",
- .flags = FLAG_ETHER,
+ .flags = FLAG_ETHER | FLAG_LINK_INTR,
// .check_connect = cdc_check_connect,
.bind = cdc_bind,
.unbind = usbnet_cdc_unbind,