From: Johan Hovold Date: Wed, 17 Mar 2010 22:06:05 +0000 (+0100) Subject: USB: usb_debug: use the generic kfifo-based write implementation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80fa92c1335a3c7f85a3e0d3dbffd79984fdccc0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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 @@ #include #include -#define URB_DEBUG_MAX_IN_FLIGHT_URBS 4000 #define USB_DEBUG_MAX_PACKET_SIZE 8 #define USB_DEBUG_BRK_SIZE 8 static char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = { @@ -84,7 +83,6 @@ static struct usb_serial_driver debug_device = { .id_table = id_table, .num_ports = 1, .open = usb_debug_open, - .max_in_flight_urbs = URB_DEBUG_MAX_IN_FLIGHT_URBS, .break_ctl = usb_debug_break_ctl, .read_bulk_callback = usb_debug_read_bulk_callback, };