diff options
author | Oliver Neukum <oliver@neukum.org> | 2007-10-12 11:24:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:34:47 -0500 |
commit | 1365baf7249bb2d05e774e7681237b8e86f5007a (patch) | |
tree | d9a77d461a6cacf1154c59468f47db854982f254 /drivers/usb/class/cdc-acm.h | |
parent | eedffd12e07d8fd150618d603d010b491dc90354 (diff) |
USB: autosuspend for cdc-acm
Here we go. This patch implements suspend/resume and autosuspend
for the CDC ACM driver.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class/cdc-acm.h')
-rw-r--r-- | drivers/usb/class/cdc-acm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/class/cdc-acm.h b/drivers/usb/class/cdc-acm.h index 09f7765dbf8d..8df6a57dcf9e 100644 --- a/drivers/usb/class/cdc-acm.h +++ b/drivers/usb/class/cdc-acm.h | |||
@@ -107,6 +107,7 @@ struct acm { | |||
107 | int write_used; /* number of non-empty write buffers */ | 107 | int write_used; /* number of non-empty write buffers */ |
108 | int write_ready; /* write urb is not running */ | 108 | int write_ready; /* write urb is not running */ |
109 | spinlock_t write_lock; | 109 | spinlock_t write_lock; |
110 | struct mutex mutex; | ||
110 | struct usb_cdc_line_coding line; /* bits, stop, parity */ | 111 | struct usb_cdc_line_coding line; /* bits, stop, parity */ |
111 | struct work_struct work; /* work queue entry for line discipline waking up */ | 112 | struct work_struct work; /* work queue entry for line discipline waking up */ |
112 | struct tasklet_struct urb_task; /* rx processing */ | 113 | struct tasklet_struct urb_task; /* rx processing */ |
@@ -120,6 +121,7 @@ struct acm { | |||
120 | unsigned char throttle; /* throttled by tty layer */ | 121 | unsigned char throttle; /* throttled by tty layer */ |
121 | unsigned char clocal; /* termios CLOCAL */ | 122 | unsigned char clocal; /* termios CLOCAL */ |
122 | unsigned int ctrl_caps; /* control capabilities from the class specific header */ | 123 | unsigned int ctrl_caps; /* control capabilities from the class specific header */ |
124 | unsigned int susp_count; /* number of suspended interfaces */ | ||
123 | }; | 125 | }; |
124 | 126 | ||
125 | #define CDC_DATA_INTERFACE_TYPE 0x0a | 127 | #define CDC_DATA_INTERFACE_TYPE 0x0a |