aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/usbnet.h
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-11-04 10:29:52 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-10 23:54:40 -0500
commit37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71 (patch)
tree079b4bc5a6450e06b6310c083fcb4ab5ee543452 /include/linux/usb/usbnet.h
parent8cbd9623da7e7a99c6bd0f0b7d21d17c233c6abb (diff)
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 'include/linux/usb/usbnet.h')
-rw-r--r--include/linux/usb/usbnet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index 86c31b753266..8c84881f8478 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -92,6 +92,7 @@ struct driver_info {
92#define FLAG_SEND_ZLP 0x0200 /* hw requires ZLPs are sent */ 92#define FLAG_SEND_ZLP 0x0200 /* hw requires ZLPs are sent */
93#define FLAG_WWAN 0x0400 /* use "wwan%d" names */ 93#define FLAG_WWAN 0x0400 /* use "wwan%d" names */
94 94
95#define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */
95 96
96 /* init device ... can sleep, or cause probe() failure */ 97 /* init device ... can sleep, or cause probe() failure */
97 int (*bind)(struct usbnet *, struct usb_interface *); 98 int (*bind)(struct usbnet *, struct usb_interface *);