Commit 5a2c4a8b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

usb_submit_urb() changes for all drivers/usb/serial/*.c drivers

parent 6ab1c9a3
...@@ -217,14 +217,14 @@ static int belkin_sa_open (struct usb_serial_port *port, struct file *filp) ...@@ -217,14 +217,14 @@ static int belkin_sa_open (struct usb_serial_port *port, struct file *filp)
* enhance buffering. Win trace shows 16 initial read URBs. * enhance buffering. Win trace shows 16 initial read URBs.
*/ */
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
retval = usb_submit_urb(port->read_urb); retval = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (retval) { if (retval) {
err("usb_submit_urb(read bulk) failed"); err("usb_submit_urb(read bulk) failed");
goto exit; goto exit;
} }
port->interrupt_in_urb->dev = port->serial->dev; port->interrupt_in_urb->dev = port->serial->dev;
retval = usb_submit_urb(port->interrupt_in_urb); retval = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
if (retval) if (retval)
err(" usb_submit_urb(read int) failed"); err(" usb_submit_urb(read int) failed");
} }
......
...@@ -173,7 +173,7 @@ static int cyberjack_open (struct usb_serial_port *port, struct file *filp) ...@@ -173,7 +173,7 @@ static int cyberjack_open (struct usb_serial_port *port, struct file *filp)
usb_unlink_urb (port->interrupt_in_urb); usb_unlink_urb (port->interrupt_in_urb);
port->interrupt_in_urb->dev = port->serial->dev; port->interrupt_in_urb->dev = port->serial->dev;
result = usb_submit_urb(port->interrupt_in_urb); result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
if (result) if (result)
err(" usb_submit_urb(read int) failed"); err(" usb_submit_urb(read int) failed");
dbg(__FUNCTION__ " - usb_submit_urb(int urb)"); dbg(__FUNCTION__ " - usb_submit_urb(int urb)");
...@@ -271,7 +271,7 @@ static int cyberjack_write (struct usb_serial_port *port, int from_user, const u ...@@ -271,7 +271,7 @@ static int cyberjack_write (struct usb_serial_port *port, int from_user, const u
port); port);
/* send the data out the bulk port */ /* send the data out the bulk port */
result = usb_submit_urb(port->write_urb); result = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
/* Throw away data. No better idea what to do with it. */ /* Throw away data. No better idea what to do with it. */
...@@ -342,7 +342,7 @@ static void cyberjack_read_int_callback( struct urb *urb ) ...@@ -342,7 +342,7 @@ static void cyberjack_read_int_callback( struct urb *urb )
if( !old_rdtodo ) { if( !old_rdtodo ) {
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if( result ) if( result )
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
dbg(__FUNCTION__ " - usb_submit_urb(read urb)"); dbg(__FUNCTION__ " - usb_submit_urb(read urb)");
...@@ -398,7 +398,7 @@ static void cyberjack_read_bulk_callback (struct urb *urb) ...@@ -398,7 +398,7 @@ static void cyberjack_read_bulk_callback (struct urb *urb)
/* Continue to read if we have still urbs to do. */ /* Continue to read if we have still urbs to do. */
if( priv->rdtodo /* || (urb->actual_length==port->bulk_in_endpointAddress)*/ ) { if( priv->rdtodo /* || (urb->actual_length==port->bulk_in_endpointAddress)*/ ) {
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
dbg(__FUNCTION__ " - usb_submit_urb(read urb)"); dbg(__FUNCTION__ " - usb_submit_urb(read urb)");
...@@ -453,7 +453,7 @@ static void cyberjack_write_bulk_callback (struct urb *urb) ...@@ -453,7 +453,7 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
port); port);
/* send the data out the bulk port */ /* send the data out the bulk port */
result = usb_submit_urb(port->write_urb); result = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
/* Throw away data. No better idea what to do with it. */ /* Throw away data. No better idea what to do with it. */
......
...@@ -676,7 +676,7 @@ dbg( "digi_write_oob_command: TOP: port=%d, count=%d", oob_priv->dp_port_num, co ...@@ -676,7 +676,7 @@ dbg( "digi_write_oob_command: TOP: port=%d, count=%d", oob_priv->dp_port_num, co
oob_port->write_urb->transfer_buffer_length = len; oob_port->write_urb->transfer_buffer_length = len;
oob_port->write_urb->dev = port->serial->dev; oob_port->write_urb->dev = port->serial->dev;
if( (ret=usb_submit_urb(oob_port->write_urb)) == 0 ) { if( (ret=usb_submit_urb(oob_port->write_urb, GFP_KERNEL)) == 0 ) {
oob_priv->dp_write_urb_in_use = 1; oob_priv->dp_write_urb_in_use = 1;
count -= len; count -= len;
buf += len; buf += len;
...@@ -764,7 +764,7 @@ count ); ...@@ -764,7 +764,7 @@ count );
} }
port->write_urb->dev = port->serial->dev; port->write_urb->dev = port->serial->dev;
if( (ret=usb_submit_urb(port->write_urb)) == 0 ) { if( (ret=usb_submit_urb(port->write_urb, GFP_KERNEL)) == 0 ) {
priv->dp_write_urb_in_use = 1; priv->dp_write_urb_in_use = 1;
priv->dp_out_buf_len = 0; priv->dp_out_buf_len = 0;
count -= len; count -= len;
...@@ -841,7 +841,7 @@ port_priv->dp_port_num, modem_signals ); ...@@ -841,7 +841,7 @@ port_priv->dp_port_num, modem_signals );
oob_port->write_urb->transfer_buffer_length = 8; oob_port->write_urb->transfer_buffer_length = 8;
oob_port->write_urb->dev = port->serial->dev; oob_port->write_urb->dev = port->serial->dev;
if( (ret=usb_submit_urb(oob_port->write_urb)) == 0 ) { if( (ret=usb_submit_urb(oob_port->write_urb, GFP_KERNEL)) == 0 ) {
oob_priv->dp_write_urb_in_use = 1; oob_priv->dp_write_urb_in_use = 1;
port_priv->dp_modem_signals = port_priv->dp_modem_signals =
(port_priv->dp_modem_signals&~(TIOCM_DTR|TIOCM_RTS)) (port_priv->dp_modem_signals&~(TIOCM_DTR|TIOCM_RTS))
...@@ -962,7 +962,7 @@ dbg( "digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num ); ...@@ -962,7 +962,7 @@ dbg( "digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num );
/* restart read chain */ /* restart read chain */
if( priv->dp_throttle_restart ) { if( priv->dp_throttle_restart ) {
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
ret = usb_submit_urb( port->read_urb ); ret = usb_submit_urb( port->read_urb, GFP_KERNEL );
} }
/* turn throttle off */ /* turn throttle off */
...@@ -1323,7 +1323,7 @@ priv->dp_port_num, count, from_user, in_interrupt() ); ...@@ -1323,7 +1323,7 @@ priv->dp_port_num, count, from_user, in_interrupt() );
/* copy in new data */ /* copy in new data */
memcpy( data, from_user ? user_buf : buf, new_len ); memcpy( data, from_user ? user_buf : buf, new_len );
if( (ret=usb_submit_urb(port->write_urb)) == 0 ) { if( (ret=usb_submit_urb(port->write_urb, GFP_KERNEL)) == 0 ) {
priv->dp_write_urb_in_use = 1; priv->dp_write_urb_in_use = 1;
ret = new_len; ret = new_len;
priv->dp_out_buf_len = 0; priv->dp_out_buf_len = 0;
...@@ -1399,7 +1399,7 @@ dbg( "digi_write_bulk_callback: TOP, urb->status=%d", urb->status ); ...@@ -1399,7 +1399,7 @@ dbg( "digi_write_bulk_callback: TOP, urb->status=%d", urb->status );
memcpy( port->write_urb->transfer_buffer+2, priv->dp_out_buf, memcpy( port->write_urb->transfer_buffer+2, priv->dp_out_buf,
priv->dp_out_buf_len ); priv->dp_out_buf_len );
if( (ret=usb_submit_urb(port->write_urb)) == 0 ) { if( (ret=usb_submit_urb(port->write_urb, GFP_KERNEL)) == 0 ) {
priv->dp_write_urb_in_use = 1; priv->dp_write_urb_in_use = 1;
priv->dp_out_buf_len = 0; priv->dp_out_buf_len = 0;
} }
...@@ -1677,7 +1677,7 @@ static int digi_startup_device( struct usb_serial *serial ) ...@@ -1677,7 +1677,7 @@ static int digi_startup_device( struct usb_serial *serial )
port->write_urb->dev = port->serial->dev; port->write_urb->dev = port->serial->dev;
if( (ret=usb_submit_urb(port->read_urb)) != 0 ) { if( (ret=usb_submit_urb(port->read_urb, GFP_KERNEL)) != 0 ) {
err( err(
__FUNCTION__ ": usb_submit_urb failed, ret=%d, port=%d", __FUNCTION__ ": usb_submit_urb failed, ret=%d, port=%d",
ret, i ); ret, i );
...@@ -1837,7 +1837,7 @@ dbg( "digi_read_bulk_callback: TOP" ); ...@@ -1837,7 +1837,7 @@ dbg( "digi_read_bulk_callback: TOP" );
/* continue read */ /* continue read */
urb->dev = port->serial->dev; urb->dev = port->serial->dev;
if( (ret=usb_submit_urb(urb)) != 0 ) { if( (ret=usb_submit_urb(urb, GFP_KERNEL)) != 0 ) {
err( __FUNCTION__ ": failed resubmitting urb, ret=%d, port=%d", err( __FUNCTION__ ": failed resubmitting urb, ret=%d, port=%d",
ret, priv->dp_port_num ); ret, priv->dp_port_num );
} }
......
...@@ -182,7 +182,7 @@ static int empeg_open (struct usb_serial_port *port, struct file *filp) ...@@ -182,7 +182,7 @@ static int empeg_open (struct usb_serial_port *port, struct file *filp)
port->read_urb->transfer_flags |= USB_QUEUE_BULK; port->read_urb->transfer_flags |= USB_QUEUE_BULK;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
...@@ -296,7 +296,7 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig ...@@ -296,7 +296,7 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig
urb->transfer_flags |= USB_QUEUE_BULK; urb->transfer_flags |= USB_QUEUE_BULK;
/* send it down the pipe */ /* send it down the pipe */
status = usb_submit_urb(urb); status = usb_submit_urb(urb, GFP_KERNEL);
if (status) { if (status) {
err(__FUNCTION__ " - usb_submit_urb(write bulk) failed with status = %d", status); err(__FUNCTION__ " - usb_submit_urb(write bulk) failed with status = %d", status);
bytes_sent = status; bytes_sent = status;
...@@ -449,7 +449,7 @@ static void empeg_read_bulk_callback (struct urb *urb) ...@@ -449,7 +449,7 @@ static void empeg_read_bulk_callback (struct urb *urb)
port->read_urb->transfer_flags |= USB_QUEUE_BULK; port->read_urb->transfer_flags |= USB_QUEUE_BULK;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
...@@ -484,7 +484,7 @@ static void empeg_unthrottle (struct usb_serial_port *port) ...@@ -484,7 +484,7 @@ static void empeg_unthrottle (struct usb_serial_port *port)
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
......
...@@ -356,7 +356,7 @@ static int ftdi_sio_open (struct usb_serial_port *port, struct file *filp) ...@@ -356,7 +356,7 @@ static int ftdi_sio_open (struct usb_serial_port *port, struct file *filp)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
ftdi_sio_read_bulk_callback, port); ftdi_sio_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
} }
...@@ -479,7 +479,7 @@ static int ftdi_sio_write (struct usb_serial_port *port, int from_user, ...@@ -479,7 +479,7 @@ static int ftdi_sio_write (struct usb_serial_port *port, int from_user,
port->write_urb->transfer_buffer, count, port->write_urb->transfer_buffer, count,
ftdi_sio_write_bulk_callback, port); ftdi_sio_write_bulk_callback, port);
result = usb_submit_urb(port->write_urb); result = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
up (&port->sem); up (&port->sem);
...@@ -644,7 +644,7 @@ static void ftdi_sio_read_bulk_callback (struct urb *urb) ...@@ -644,7 +644,7 @@ static void ftdi_sio_read_bulk_callback (struct urb *urb)
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
ftdi_sio_read_bulk_callback, port); ftdi_sio_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
......
...@@ -787,7 +787,7 @@ static void edge_interrupt_callback (struct urb *urb) ...@@ -787,7 +787,7 @@ static void edge_interrupt_callback (struct urb *urb)
/* we have pending bytes on the bulk in pipe, send a request */ /* we have pending bytes on the bulk in pipe, send a request */
edge_serial->read_urb->dev = edge_serial->serial->dev; edge_serial->read_urb->dev = edge_serial->serial->dev;
result = usb_submit_urb(edge_serial->read_urb); result = usb_submit_urb(edge_serial->read_urb, GFP_KERNEL);
if (result) { if (result) {
dbg(__FUNCTION__" - usb_submit_urb(read bulk) failed with result = %d", result); dbg(__FUNCTION__" - usb_submit_urb(read bulk) failed with result = %d", result);
} }
...@@ -864,7 +864,7 @@ static void edge_bulk_in_callback (struct urb *urb) ...@@ -864,7 +864,7 @@ static void edge_bulk_in_callback (struct urb *urb)
/* there is, so resubmit our urb */ /* there is, so resubmit our urb */
edge_serial->read_urb->dev = edge_serial->serial->dev; edge_serial->read_urb->dev = edge_serial->serial->dev;
status = usb_submit_urb(edge_serial->read_urb); status = usb_submit_urb(edge_serial->read_urb, GFP_KERNEL);
if (status) { if (status) {
err(__FUNCTION__" - usb_submit_urb(read bulk) failed, status = %d", status); err(__FUNCTION__" - usb_submit_urb(read bulk) failed, status = %d", status);
} }
...@@ -1031,7 +1031,7 @@ static int edge_open (struct usb_serial_port *port, struct file * filp) ...@@ -1031,7 +1031,7 @@ static int edge_open (struct usb_serial_port *port, struct file * filp)
/* start interrupt read for this edgeport /* start interrupt read for this edgeport
* this interrupt will continue as long as the edgeport is connected */ * this interrupt will continue as long as the edgeport is connected */
response = usb_submit_urb (edge_serial->interrupt_read_urb); response = usb_submit_urb (edge_serial->interrupt_read_urb, GFP_KERNEL);
if (response) { if (response) {
err(__FUNCTION__" - Error %d submitting control urb", response); err(__FUNCTION__" - Error %d submitting control urb", response);
} }
...@@ -1471,7 +1471,7 @@ static void send_more_port_data(struct edgeport_serial *edge_serial, struct edge ...@@ -1471,7 +1471,7 @@ static void send_more_port_data(struct edgeport_serial *edge_serial, struct edge
urb->transfer_flags |= USB_QUEUE_BULK; urb->transfer_flags |= USB_QUEUE_BULK;
urb->dev = edge_serial->serial->dev; urb->dev = edge_serial->serial->dev;
status = usb_submit_urb(urb); status = usb_submit_urb(urb, GFP_KERNEL);
if (status) { if (status) {
/* something went wrong */ /* something went wrong */
dbg(__FUNCTION__" - usb_submit_urb(write bulk) failed"); dbg(__FUNCTION__" - usb_submit_urb(write bulk) failed");
...@@ -2477,7 +2477,7 @@ static int write_cmd_usb (struct edgeport_port *edge_port, unsigned char *buffer ...@@ -2477,7 +2477,7 @@ static int write_cmd_usb (struct edgeport_port *edge_port, unsigned char *buffer
urb->transfer_flags |= USB_QUEUE_BULK; urb->transfer_flags |= USB_QUEUE_BULK;
edge_port->commandPending = TRUE; edge_port->commandPending = TRUE;
status = usb_submit_urb(urb); status = usb_submit_urb(urb, GFP_KERNEL);
if (status) { if (status) {
/* something went wrong */ /* something went wrong */
......
...@@ -171,7 +171,7 @@ static int ipaq_open(struct usb_serial_port *port, struct file *filp) ...@@ -171,7 +171,7 @@ static int ipaq_open(struct usb_serial_port *port, struct file *filp)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
ipaq_read_bulk_callback, port); ipaq_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
} }
...@@ -288,7 +288,7 @@ static void ipaq_read_bulk_callback(struct urb *urb) ...@@ -288,7 +288,7 @@ static void ipaq_read_bulk_callback(struct urb *urb)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
ipaq_read_bulk_callback, port); ipaq_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
return; return;
...@@ -403,7 +403,7 @@ static int ipaq_write_flush(struct usb_serial_port *port) ...@@ -403,7 +403,7 @@ static int ipaq_write_flush(struct usb_serial_port *port)
usb_sndbulkpipe(serial->dev, port->bulk_out_endpointAddress), usb_sndbulkpipe(serial->dev, port->bulk_out_endpointAddress),
port->write_urb->transfer_buffer, count, ipaq_write_bulk_callback, port->write_urb->transfer_buffer, count, ipaq_write_bulk_callback,
port); port);
result = usb_submit_urb(urb); result = usb_submit_urb(urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
} }
......
...@@ -289,7 +289,7 @@ static int ir_open (struct usb_serial_port *port, struct file *filp) ...@@ -289,7 +289,7 @@ static int ir_open (struct usb_serial_port *port, struct file *filp)
ir_read_bulk_callback, ir_read_bulk_callback,
port); port);
port->read_urb->transfer_flags = USB_QUEUE_BULK; port->read_urb->transfer_flags = USB_QUEUE_BULK;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err("%s - failed submitting read urb, error %d", __FUNCTION__, result); err("%s - failed submitting read urb, error %d", __FUNCTION__, result);
} }
...@@ -382,7 +382,7 @@ static int ir_write (struct usb_serial_port *port, int from_user, const unsigned ...@@ -382,7 +382,7 @@ static int ir_write (struct usb_serial_port *port, int from_user, const unsigned
= USB_QUEUE_BULK = USB_QUEUE_BULK
| USB_ZERO_PACKET; | USB_ZERO_PACKET;
result = usb_submit_urb (port->write_urb); result = usb_submit_urb (port->write_urb, GFP_KERNEL);
if (result) if (result)
err("%s - failed submitting write urb, error %d", __FUNCTION__, result); err("%s - failed submitting write urb, error %d", __FUNCTION__, result);
else else
...@@ -492,7 +492,7 @@ static void ir_read_bulk_callback (struct urb *urb) ...@@ -492,7 +492,7 @@ static void ir_read_bulk_callback (struct urb *urb)
port->read_urb->transfer_flags = USB_QUEUE_BULK; port->read_urb->transfer_flags = USB_QUEUE_BULK;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err("%s - failed resubmitting read urb, error %d", err("%s - failed resubmitting read urb, error %d",
...@@ -591,7 +591,7 @@ static void ir_set_termios (struct usb_serial_port *port, struct termios *old_te ...@@ -591,7 +591,7 @@ static void ir_set_termios (struct usb_serial_port *port, struct termios *old_te
= USB_QUEUE_BULK = USB_QUEUE_BULK
| USB_ZERO_PACKET; | USB_ZERO_PACKET;
result = usb_submit_urb (port->write_urb); result = usb_submit_urb (port->write_urb, GFP_KERNEL);
if (result) if (result)
err("%s - failed submitting write urb, error %d", __FUNCTION__, result); err("%s - failed submitting write urb, error %d", __FUNCTION__, result);
} }
......
...@@ -378,7 +378,7 @@ static int keyspan_write(struct usb_serial_port *port, int from_user, ...@@ -378,7 +378,7 @@ static int keyspan_write(struct usb_serial_port *port, int from_user,
this_urb->transfer_flags &= ~USB_ASYNC_UNLINK; this_urb->transfer_flags &= ~USB_ASYNC_UNLINK;
this_urb->dev = port->serial->dev; this_urb->dev = port->serial->dev;
if ((err = usb_submit_urb(this_urb)) != 0) { if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
dbg("usb_submit_urb(write bulk) failed (%d)\n", err); dbg("usb_submit_urb(write bulk) failed (%d)\n", err);
} }
p_priv->tx_start_time[flip] = jiffies; p_priv->tx_start_time[flip] = jiffies;
...@@ -436,7 +436,7 @@ static void usa26_indat_callback(struct urb *urb) ...@@ -436,7 +436,7 @@ static void usa26_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = port->serial->dev; urb->dev = port->serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err); dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err);
} }
return; return;
...@@ -535,7 +535,7 @@ static void usa26_instat_callback(struct urb *urb) ...@@ -535,7 +535,7 @@ static void usa26_instat_callback(struct urb *urb)
exit: exit:
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = serial->dev; urb->dev = serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err); dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err);
} }
} }
...@@ -586,7 +586,7 @@ static void usa28_indat_callback(struct urb *urb) ...@@ -586,7 +586,7 @@ static void usa28_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = port->serial->dev; urb->dev = port->serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n",
err); err);
} }
...@@ -671,7 +671,7 @@ static void usa28_instat_callback(struct urb *urb) ...@@ -671,7 +671,7 @@ static void usa28_instat_callback(struct urb *urb)
exit: exit:
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = serial->dev; urb->dev = serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err); dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err);
} }
} }
...@@ -764,7 +764,7 @@ static void usa49_instat_callback(struct urb *urb) ...@@ -764,7 +764,7 @@ static void usa49_instat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = serial->dev; urb->dev = serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err); dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err);
} }
} }
...@@ -819,7 +819,7 @@ static void usa49_indat_callback(struct urb *urb) ...@@ -819,7 +819,7 @@ static void usa49_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
urb->dev = port->serial->dev; urb->dev = port->serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err); dbg(__FUNCTION__ "resubmit read urb failed. (%d)\n", err);
} }
} }
...@@ -880,7 +880,7 @@ static int keyspan_open (struct usb_serial_port *port, struct file *filp) ...@@ -880,7 +880,7 @@ static int keyspan_open (struct usb_serial_port *port, struct file *filp)
if ((urb = p_priv->in_urbs[i]) == NULL) if ((urb = p_priv->in_urbs[i]) == NULL)
continue; continue;
urb->dev = serial->dev; urb->dev = serial->dev;
if ((err = usb_submit_urb(urb)) != 0) { if ((err = usb_submit_urb(urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ " submit urb %d failed (%d)\n", i, err); dbg(__FUNCTION__ " submit urb %d failed (%d)\n", i, err);
} }
} }
...@@ -1408,7 +1408,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial, ...@@ -1408,7 +1408,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial,
this_urb->transfer_buffer_length = sizeof(msg); this_urb->transfer_buffer_length = sizeof(msg);
this_urb->dev = serial->dev; this_urb->dev = serial->dev;
if ((err = usb_submit_urb(this_urb)) != 0) { if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ " usb_submit_urb(setup) failed (%d)\n", err); dbg(__FUNCTION__ " usb_submit_urb(setup) failed (%d)\n", err);
} }
#if 0 #if 0
...@@ -1494,7 +1494,7 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial, ...@@ -1494,7 +1494,7 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial,
this_urb->transfer_buffer_length = sizeof(msg); this_urb->transfer_buffer_length = sizeof(msg);
this_urb->dev = serial->dev; this_urb->dev = serial->dev;
if ((err = usb_submit_urb(this_urb)) != 0) { if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ " usb_submit_urb(setup) failed\n"); dbg(__FUNCTION__ " usb_submit_urb(setup) failed\n");
} }
#if 0 #if 0
...@@ -1622,7 +1622,7 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial, ...@@ -1622,7 +1622,7 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
this_urb->transfer_buffer_length = sizeof(msg); this_urb->transfer_buffer_length = sizeof(msg);
this_urb->dev = serial->dev; this_urb->dev = serial->dev;
if ((err = usb_submit_urb(this_urb)) != 0) { if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ " usb_submit_urb(setup) failed (%d)\n", err); dbg(__FUNCTION__ " usb_submit_urb(setup) failed (%d)\n", err);
} }
#if 0 #if 0
...@@ -1708,7 +1708,7 @@ static int keyspan_startup (struct usb_serial *serial) ...@@ -1708,7 +1708,7 @@ static int keyspan_startup (struct usb_serial *serial)
keyspan_setup_urbs(serial); keyspan_setup_urbs(serial);
s_priv->instat_urb->dev = serial->dev; s_priv->instat_urb->dev = serial->dev;
if ((err = usb_submit_urb(s_priv->instat_urb)) != 0) { if ((err = usb_submit_urb(s_priv->instat_urb, GFP_KERNEL)) != 0) {
dbg(__FUNCTION__ " submit instat urb failed %d\n", err); dbg(__FUNCTION__ " submit instat urb failed %d\n", err);
} }
......
...@@ -292,7 +292,7 @@ static void keyspan_pda_rx_unthrottle (struct usb_serial_port *port) ...@@ -292,7 +292,7 @@ static void keyspan_pda_rx_unthrottle (struct usb_serial_port *port)
/* just restart the receive interrupt URB */ /* just restart the receive interrupt URB */
dbg("keyspan_pda_rx_unthrottle port %d", port->number); dbg("keyspan_pda_rx_unthrottle port %d", port->number);
port->interrupt_in_urb->dev = port->serial->dev; port->interrupt_in_urb->dev = port->serial->dev;
if (usb_submit_urb(port->interrupt_in_urb)) if (usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL))
dbg(" usb_submit_urb(read urb) failed"); dbg(" usb_submit_urb(read urb) failed");
return; return;
} }
...@@ -584,7 +584,7 @@ static int keyspan_pda_write(struct usb_serial_port *port, int from_user, ...@@ -584,7 +584,7 @@ static int keyspan_pda_write(struct usb_serial_port *port, int from_user,
priv->tx_room -= count; priv->tx_room -= count;
port->write_urb->dev = port->serial->dev; port->write_urb->dev = port->serial->dev;
rc = usb_submit_urb(port->write_urb); rc = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (rc) { if (rc) {
dbg(" usb_submit_urb(write bulk) failed"); dbg(" usb_submit_urb(write bulk) failed");
goto exit; goto exit;
...@@ -699,7 +699,7 @@ static int keyspan_pda_open (struct usb_serial_port *port, struct file *filp) ...@@ -699,7 +699,7 @@ static int keyspan_pda_open (struct usb_serial_port *port, struct file *filp)
/*Start reading from the device*/ /*Start reading from the device*/
port->interrupt_in_urb->dev = serial->dev; port->interrupt_in_urb->dev = serial->dev;
rc = usb_submit_urb(port->interrupt_in_urb); rc = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
if (rc) { if (rc) {
dbg(__FUNCTION__" - usb_submit_urb(read int) failed"); dbg(__FUNCTION__" - usb_submit_urb(read int) failed");
goto error; goto error;
......
...@@ -404,7 +404,7 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp) ...@@ -404,7 +404,7 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp)
port); port);
port->read_urb->transfer_flags |= USB_QUEUE_BULK; port->read_urb->transfer_flags |= USB_QUEUE_BULK;
rc = usb_submit_urb(port->read_urb); rc = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (rc) { if (rc) {
err(__FUNCTION__ err(__FUNCTION__
" - failed submitting read urb, error %d", rc); " - failed submitting read urb, error %d", rc);
...@@ -567,7 +567,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user, ...@@ -567,7 +567,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user,
/* send the data out the bulk port */ /* send the data out the bulk port */
result = usb_submit_urb(urb); result = usb_submit_urb(urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ err(__FUNCTION__
" - failed submitting write urb, error %d", result); " - failed submitting write urb, error %d", result);
...@@ -734,7 +734,7 @@ static void klsi_105_read_bulk_callback (struct urb *urb) ...@@ -734,7 +734,7 @@ static void klsi_105_read_bulk_callback (struct urb *urb)
port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer_length,
klsi_105_read_bulk_callback, klsi_105_read_bulk_callback,
port); port);
rc = usb_submit_urb(port->read_urb); rc = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (rc) if (rc)
err(__FUNCTION__ err(__FUNCTION__
" - failed resubmitting read urb, error %d", rc); " - failed resubmitting read urb, error %d", rc);
...@@ -1041,7 +1041,7 @@ static void klsi_105_unthrottle (struct usb_serial_port *port) ...@@ -1041,7 +1041,7 @@ static void klsi_105_unthrottle (struct usb_serial_port *port)
down (&port->sem); down (&port->sem);
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", err(__FUNCTION__ " - failed submitting read urb, error %d",
result); result);
......
...@@ -384,14 +384,14 @@ static int mct_u232_open (struct usb_serial_port *port, struct file *filp) ...@@ -384,14 +384,14 @@ static int mct_u232_open (struct usb_serial_port *port, struct file *filp)
} }
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
retval = usb_submit_urb(port->read_urb); retval = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (retval) { if (retval) {
err("usb_submit_urb(read bulk) failed"); err("usb_submit_urb(read bulk) failed");
goto exit; goto exit;
} }
port->interrupt_in_urb->dev = port->serial->dev; port->interrupt_in_urb->dev = port->serial->dev;
retval = usb_submit_urb(port->interrupt_in_urb); retval = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
if (retval) if (retval)
err(" usb_submit_urb(read int) failed"); err(" usb_submit_urb(read int) failed");
...@@ -482,7 +482,7 @@ static int mct_u232_write (struct usb_serial_port *port, int from_user, ...@@ -482,7 +482,7 @@ static int mct_u232_write (struct usb_serial_port *port, int from_user,
port); port);
/* send the data out the bulk port */ /* send the data out the bulk port */
result = usb_submit_urb(port->write_urb); result = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ err(__FUNCTION__
" - failed submitting write urb, error %d", result); " - failed submitting write urb, error %d", result);
......
...@@ -179,7 +179,7 @@ static int omninet_open (struct usb_serial_port *port, struct file *filp) ...@@ -179,7 +179,7 @@ static int omninet_open (struct usb_serial_port *port, struct file *filp)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
omninet_read_bulk_callback, port); omninet_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
} }
...@@ -274,7 +274,7 @@ static void omninet_read_bulk_callback (struct urb *urb) ...@@ -274,7 +274,7 @@ static void omninet_read_bulk_callback (struct urb *urb)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
urb->transfer_buffer, urb->transfer_buffer_length, urb->transfer_buffer, urb->transfer_buffer_length,
omninet_read_bulk_callback, port); omninet_read_bulk_callback, port);
result = usb_submit_urb(urb); result = usb_submit_urb(urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
...@@ -325,7 +325,7 @@ static int omninet_write (struct usb_serial_port *port, int from_user, const uns ...@@ -325,7 +325,7 @@ static int omninet_write (struct usb_serial_port *port, int from_user, const uns
wport->write_urb->transfer_buffer_length = 64; wport->write_urb->transfer_buffer_length = 64;
wport->write_urb->dev = serial->dev; wport->write_urb->dev = serial->dev;
result = usb_submit_urb(wport->write_urb); result = usb_submit_urb(wport->write_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
else else
......
...@@ -195,7 +195,7 @@ static int pl2303_write (struct usb_serial_port *port, int from_user, const uns ...@@ -195,7 +195,7 @@ static int pl2303_write (struct usb_serial_port *port, int from_user, const uns
port->write_urb->transfer_buffer_length = count; port->write_urb->transfer_buffer_length = count;
port->write_urb->dev = port->serial->dev; port->write_urb->dev = port->serial->dev;
result = usb_submit_urb (port->write_urb); result = usb_submit_urb (port->write_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
else else
...@@ -404,7 +404,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp) ...@@ -404,7 +404,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp)
dbg (__FUNCTION__ " - submitting read urb"); dbg (__FUNCTION__ " - submitting read urb");
port->read_urb->dev = serial->dev; port->read_urb->dev = serial->dev;
result = usb_submit_urb (port->read_urb); result = usb_submit_urb (port->read_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
up (&port->sem); up (&port->sem);
...@@ -414,7 +414,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp) ...@@ -414,7 +414,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp)
dbg (__FUNCTION__ " - submitting interrupt urb"); dbg (__FUNCTION__ " - submitting interrupt urb");
port->interrupt_in_urb->dev = serial->dev; port->interrupt_in_urb->dev = serial->dev;
result = usb_submit_urb (port->interrupt_in_urb); result = usb_submit_urb (port->interrupt_in_urb, GFP_KERNEL);
if (result) { if (result) {
err(__FUNCTION__ " - failed submitting interrupt urb, error %d", result); err(__FUNCTION__ " - failed submitting interrupt urb, error %d", result);
up (&port->sem); up (&port->sem);
...@@ -652,7 +652,7 @@ static void pl2303_read_bulk_callback (struct urb *urb) ...@@ -652,7 +652,7 @@ static void pl2303_read_bulk_callback (struct urb *urb)
dbg (__FUNCTION__ " - caught -EPROTO, resubmitting the urb"); dbg (__FUNCTION__ " - caught -EPROTO, resubmitting the urb");
urb->status = 0; urb->status = 0;
urb->dev = serial->dev; urb->dev = serial->dev;
result = usb_submit_urb(urb); result = usb_submit_urb(urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
return; return;
...@@ -677,7 +677,7 @@ static void pl2303_read_bulk_callback (struct urb *urb) ...@@ -677,7 +677,7 @@ static void pl2303_read_bulk_callback (struct urb *urb)
/* Schedule the next read _if_ we are still open */ /* Schedule the next read _if_ we are still open */
if (port->open_count) { if (port->open_count) {
urb->dev = serial->dev; urb->dev = serial->dev;
result = usb_submit_urb(urb); result = usb_submit_urb(urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
} }
...@@ -706,7 +706,7 @@ static void pl2303_write_bulk_callback (struct urb *urb) ...@@ -706,7 +706,7 @@ static void pl2303_write_bulk_callback (struct urb *urb)
dbg (__FUNCTION__ " - nonzero write bulk status received: %d", urb->status); dbg (__FUNCTION__ " - nonzero write bulk status received: %d", urb->status);
port->write_urb->transfer_buffer_length = 1; port->write_urb->transfer_buffer_length = 1;
port->write_urb->dev = port->serial->dev; port->write_urb->dev = port->serial->dev;
result = usb_submit_urb (port->write_urb); result = usb_submit_urb (port->write_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting write urb, error %d", result); err(__FUNCTION__ " - failed resubmitting write urb, error %d", result);
......
...@@ -813,7 +813,7 @@ static int generic_open (struct usb_serial_port *port, struct file *filp) ...@@ -813,7 +813,7 @@ static int generic_open (struct usb_serial_port *port, struct file *filp)
serial->type->read_bulk_callback : serial->type->read_bulk_callback :
generic_read_bulk_callback), generic_read_bulk_callback),
port); port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
} }
...@@ -894,7 +894,7 @@ static int generic_write (struct usb_serial_port *port, int from_user, const uns ...@@ -894,7 +894,7 @@ static int generic_write (struct usb_serial_port *port, int from_user, const uns
generic_write_bulk_callback), port); generic_write_bulk_callback), port);
/* send the data out the bulk port */ /* send the data out the bulk port */
result = usb_submit_urb(port->write_urb); result = usb_submit_urb(port->write_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting write urb, error %d", result); err(__FUNCTION__ " - failed submitting write urb, error %d", result);
else else
...@@ -987,7 +987,7 @@ static void generic_read_bulk_callback (struct urb *urb) ...@@ -987,7 +987,7 @@ static void generic_read_bulk_callback (struct urb *urb)
((serial->type->read_bulk_callback) ? ((serial->type->read_bulk_callback) ?
serial->type->read_bulk_callback : serial->type->read_bulk_callback :
generic_read_bulk_callback), port); generic_read_bulk_callback), port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
} }
......
...@@ -274,7 +274,7 @@ static int visor_open (struct usb_serial_port *port, struct file *filp) ...@@ -274,7 +274,7 @@ static int visor_open (struct usb_serial_port *port, struct file *filp)
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer,
port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer_length,
visor_read_bulk_callback, port); visor_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
} }
...@@ -388,7 +388,7 @@ static int visor_write (struct usb_serial_port *port, int from_user, const unsig ...@@ -388,7 +388,7 @@ static int visor_write (struct usb_serial_port *port, int from_user, const unsig
urb->transfer_flags |= USB_QUEUE_BULK; urb->transfer_flags |= USB_QUEUE_BULK;
/* send it down the pipe */ /* send it down the pipe */
status = usb_submit_urb(urb); status = usb_submit_urb(urb, GFP_KERNEL);
if (status) { if (status) {
err(__FUNCTION__ " - usb_submit_urb(write bulk) failed with status = %d", status); err(__FUNCTION__ " - usb_submit_urb(write bulk) failed with status = %d", status);
bytes_sent = status; bytes_sent = status;
...@@ -520,7 +520,7 @@ static void visor_read_bulk_callback (struct urb *urb) ...@@ -520,7 +520,7 @@ static void visor_read_bulk_callback (struct urb *urb)
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer,
port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer_length,
visor_read_bulk_callback, port); visor_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed resubmitting read urb, error %d", result); err(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
return; return;
...@@ -551,7 +551,7 @@ static void visor_unthrottle (struct usb_serial_port *port) ...@@ -551,7 +551,7 @@ static void visor_unthrottle (struct usb_serial_port *port)
down (&port->sem); down (&port->sem);
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
err(__FUNCTION__ " - failed submitting read urb, error %d", result); err(__FUNCTION__ " - failed submitting read urb, error %d", result);
......
...@@ -240,7 +240,7 @@ static void command_port_read_callback (struct urb *urb) ...@@ -240,7 +240,7 @@ static void command_port_read_callback (struct urb *urb)
usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress), usb_rcvbulkpipe(serial->dev, port->bulk_in_endpointAddress),
port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length,
command_port_read_callback, port); command_port_read_callback, port);
result = usb_submit_urb(port->read_urb); result = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (result) if (result)
dbg(__FUNCTION__ " - failed resubmitting read urb, error %d", result); dbg(__FUNCTION__ " - failed resubmitting read urb, error %d", result);
} }
...@@ -265,7 +265,7 @@ static int whiteheat_send_cmd (struct usb_serial *serial, __u8 command, __u8 *da ...@@ -265,7 +265,7 @@ static int whiteheat_send_cmd (struct usb_serial *serial, __u8 command, __u8 *da
memcpy (&transfer_buffer[1], data, datasize); memcpy (&transfer_buffer[1], data, datasize);
port->write_urb->transfer_buffer_length = datasize + 1; port->write_urb->transfer_buffer_length = datasize + 1;
port->write_urb->dev = serial->dev; port->write_urb->dev = serial->dev;
retval = usb_submit_urb (port->write_urb); retval = usb_submit_urb (port->write_urb, GFP_KERNEL);
if (retval) { if (retval) {
dbg (__FUNCTION__" - submit urb failed"); dbg (__FUNCTION__" - submit urb failed");
goto exit; goto exit;
...@@ -327,7 +327,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp) ...@@ -327,7 +327,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp)
command_port->read_urb->complete = command_port_read_callback; command_port->read_urb->complete = command_port_read_callback;
command_port->read_urb->dev = port->serial->dev; command_port->read_urb->dev = port->serial->dev;
command_port->tty = port->tty; /* need this to "fake" our our sanity check macros */ command_port->tty = port->tty; /* need this to "fake" our our sanity check macros */
retval = usb_submit_urb (command_port->read_urb); retval = usb_submit_urb (command_port->read_urb, GFP_KERNEL);
if (retval) { if (retval) {
err(__FUNCTION__ " - failed submitting read urb, error %d", retval); err(__FUNCTION__ " - failed submitting read urb, error %d", retval);
goto error_exit; goto error_exit;
...@@ -336,7 +336,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp) ...@@ -336,7 +336,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp)
/* Start reading from the device */ /* Start reading from the device */
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
retval = usb_submit_urb(port->read_urb); retval = usb_submit_urb(port->read_urb, GFP_KERNEL);
if (retval) { if (retval) {
err(__FUNCTION__ " - failed submitting read urb, error %d", retval); err(__FUNCTION__ " - failed submitting read urb, error %d", retval);
goto error_exit; goto error_exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment