diff options
| author | Johan Hovold <jhovold@gmail.com> | 2010-03-17 18:06:05 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:34 -0400 |
| commit | 80fa92c1335a3c7f85a3e0d3dbffd79984fdccc0 (patch) | |
| tree | d0a559c1065e5070f4b7833ed03ef9f052d86565 | |
| parent | 8b0127b2082601e40295045414a8318f2c8ee5a0 (diff) | |
USB: usb_debug: use the generic kfifo-based write implementation
Use the generic kfifo-based write implementation rather than allowing up
to 4000 8 byte urbs in the host stack queues.
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/usb/serial/usb_debug.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/usb_debug.c index 63c2734e764a..aa2702b76291 100644 --- a/drivers/usb/serial/usb_debug.c +++ b/drivers/usb/serial/usb_debug.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <linux/usb.h> | 16 | #include <linux/usb.h> |
| 17 | #include <linux/usb/serial.h> | 17 | #include <linux/usb/serial.h> |
| 18 | 18 | ||
| 19 | #define URB_DEBUG_MAX_IN_FLIGHT_URBS 4000 | ||
| 20 | #define USB_DEBUG_MAX_PACKET_SIZE 8 | 19 | #define USB_DEBUG_MAX_PACKET_SIZE 8 |
| 21 | #define USB_DEBUG_BRK_SIZE 8 | 20 | #define USB_DEBUG_BRK_SIZE 8 |
| 22 | static char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = { | 21 | static char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = { |
| @@ -84,7 +83,6 @@ static struct usb_serial_driver debug_device = { | |||
| 84 | .id_table = id_table, | 83 | .id_table = id_table, |
| 85 | .num_ports = 1, | 84 | .num_ports = 1, |
| 86 | .open = usb_debug_open, | 85 | .open = usb_debug_open, |
| 87 | .max_in_flight_urbs = URB_DEBUG_MAX_IN_FLIGHT_URBS, | ||
| 88 | .break_ctl = usb_debug_break_ctl, | 86 | .break_ctl = usb_debug_break_ctl, |
| 89 | .read_bulk_callback = usb_debug_read_bulk_callback, | 87 | .read_bulk_callback = usb_debug_read_bulk_callback, |
| 90 | }; | 88 | }; |
