Skip to content

Commit

Permalink
USB: usb_debug: set bulk out size at probe
Browse files Browse the repository at this point in the history
Use bulk_out_size in usb_serial_driver to set urb buffer size.

Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jhovold authored and gregkh committed May 20, 2010
1 parent 4b8e123 commit 7288d75
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/usb/serial/usb_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ static struct usb_driver debug_driver = {
.no_dynamic_id = 1,
};

static int usb_debug_open(struct tty_struct *tty, struct usb_serial_port *port)
{
port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE;
return usb_serial_generic_open(tty, port);
}

/* This HW really does not support a serial break, so one will be
* emulated when ever the break state is set to true.
*/
Expand Down Expand Up @@ -82,7 +76,7 @@ static struct usb_serial_driver debug_device = {
},
.id_table = id_table,
.num_ports = 1,
.open = usb_debug_open,
.bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE,
.break_ctl = usb_debug_break_ctl,
.read_bulk_callback = usb_debug_read_bulk_callback,
};
Expand Down

0 comments on commit 7288d75

Please sign in to comment.