Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5a2c4a8b
Commit
5a2c4a8b
authored
Feb 05, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usb_submit_urb() changes for all drivers/usb/serial/*.c drivers
parent
6ab1c9a3
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
76 additions
and
76 deletions
+76
-76
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/belkin_sa.c
+2
-2
drivers/usb/serial/cyberjack.c
drivers/usb/serial/cyberjack.c
+5
-5
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/digi_acceleport.c
+8
-8
drivers/usb/serial/empeg.c
drivers/usb/serial/empeg.c
+4
-4
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio.c
+3
-3
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+5
-5
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+3
-3
drivers/usb/serial/ir-usb.c
drivers/usb/serial/ir-usb.c
+4
-4
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+12
-12
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/keyspan_pda.c
+3
-3
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+4
-4
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mct_u232.c
+3
-3
drivers/usb/serial/omninet.c
drivers/usb/serial/omninet.c
+3
-3
drivers/usb/serial/pl2303.c
drivers/usb/serial/pl2303.c
+6
-6
drivers/usb/serial/usbserial.c
drivers/usb/serial/usbserial.c
+3
-3
drivers/usb/serial/visor.c
drivers/usb/serial/visor.c
+4
-4
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.c
+4
-4
No files found.
drivers/usb/serial/belkin_sa.c
View file @
5a2c4a8b
...
...
@@ -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.
*/
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
)
{
err
(
"usb_submit_urb(read bulk) failed"
);
goto
exit
;
}
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
)
err
(
" usb_submit_urb(read int) failed"
);
}
...
...
drivers/usb/serial/cyberjack.c
View file @
5a2c4a8b
...
...
@@ -173,7 +173,7 @@ static int cyberjack_open (struct usb_serial_port *port, struct file *filp)
usb_unlink_urb
(
port
->
interrupt_in_urb
);
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
)
err
(
" usb_submit_urb(read int) failed"
);
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
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
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
/* Throw away data. No better idea what to do with it. */
...
...
@@ -342,7 +342,7 @@ static void cyberjack_read_int_callback( struct urb *urb )
if
(
!
old_rdtodo
)
{
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
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
dbg
(
__FUNCTION__
" - usb_submit_urb(read urb)"
);
...
...
@@ -398,7 +398,7 @@ static void cyberjack_read_bulk_callback (struct urb *urb)
/* Continue to read if we have still urbs to do. */
if
(
priv
->
rdtodo
/* || (urb->actual_length==port->bulk_in_endpointAddress)*/
)
{
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
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
dbg
(
__FUNCTION__
" - usb_submit_urb(read urb)"
);
...
...
@@ -453,7 +453,7 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
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
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
/* Throw away data. No better idea what to do with it. */
...
...
drivers/usb/serial/digi_acceleport.c
View file @
5a2c4a8b
...
...
@@ -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
->
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
;
count
-=
len
;
buf
+=
len
;
...
...
@@ -764,7 +764,7 @@ count );
}
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_out_buf_len
=
0
;
count
-=
len
;
...
...
@@ -841,7 +841,7 @@ port_priv->dp_port_num, modem_signals );
oob_port
->
write_urb
->
transfer_buffer_length
=
8
;
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
;
port_priv
->
dp_modem_signals
=
(
port_priv
->
dp_modem_signals
&~
(
TIOCM_DTR
|
TIOCM_RTS
))
...
...
@@ -962,7 +962,7 @@ dbg( "digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num );
/* restart read chain */
if
(
priv
->
dp_throttle_restart
)
{
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 */
...
...
@@ -1323,7 +1323,7 @@ priv->dp_port_num, count, from_user, in_interrupt() );
/* copy in new data */
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
;
ret
=
new_len
;
priv
->
dp_out_buf_len
=
0
;
...
...
@@ -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
,
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_out_buf_len
=
0
;
}
...
...
@@ -1677,7 +1677,7 @@ static int digi_startup_device( struct usb_serial *serial )
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
(
__FUNCTION__
": usb_submit_urb failed, ret=%d, port=%d"
,
ret
,
i
);
...
...
@@ -1837,7 +1837,7 @@ dbg( "digi_read_bulk_callback: TOP" );
/* continue read */
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"
,
ret
,
priv
->
dp_port_num
);
}
...
...
drivers/usb/serial/empeg.c
View file @
5a2c4a8b
...
...
@@ -182,7 +182,7 @@ static int empeg_open (struct usb_serial_port *port, struct file *filp)
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
)
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
urb
->
transfer_flags
|=
USB_QUEUE_BULK
;
/* send it down the pipe */
status
=
usb_submit_urb
(
urb
);
status
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
status
)
{
err
(
__FUNCTION__
" - usb_submit_urb(write bulk) failed with status = %d"
,
status
);
bytes_sent
=
status
;
...
...
@@ -449,7 +449,7 @@ static void empeg_read_bulk_callback (struct urb *urb)
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
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
...
...
@@ -484,7 +484,7 @@ static void empeg_unthrottle (struct usb_serial_port *port)
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
)
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
...
...
drivers/usb/serial/ftdi_sio.c
View file @
5a2c4a8b
...
...
@@ -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
),
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
ftdi_sio_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
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,
port
->
write_urb
->
transfer_buffer
,
count
,
ftdi_sio_write_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
write_urb
);
result
=
usb_submit_urb
(
port
->
write_urb
,
GFP_KERNEL
);
if
(
result
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
up
(
&
port
->
sem
);
...
...
@@ -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
,
ftdi_sio_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
...
...
drivers/usb/serial/io_edgeport.c
View file @
5a2c4a8b
...
...
@@ -787,7 +787,7 @@ static void edge_interrupt_callback (struct urb *urb)
/* we have pending bytes on the bulk in pipe, send a request */
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
)
{
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)
/* there is, so resubmit our urb */
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
)
{
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)
/* start interrupt read for this edgeport
* 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
)
{
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
urb
->
transfer_flags
|=
USB_QUEUE_BULK
;
urb
->
dev
=
edge_serial
->
serial
->
dev
;
status
=
usb_submit_urb
(
urb
);
status
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
status
)
{
/* something went wrong */
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
urb
->
transfer_flags
|=
USB_QUEUE_BULK
;
edge_port
->
commandPending
=
TRUE
;
status
=
usb_submit_urb
(
urb
);
status
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
status
)
{
/* something went wrong */
...
...
drivers/usb/serial/ipaq.c
View file @
5a2c4a8b
...
...
@@ -171,7 +171,7 @@ static int ipaq_open(struct usb_serial_port *port, struct file *filp)
usb_rcvbulkpipe
(
serial
->
dev
,
port
->
bulk_in_endpointAddress
),
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
ipaq_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
{
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
}
...
...
@@ -288,7 +288,7 @@ static void ipaq_read_bulk_callback(struct urb *urb)
usb_rcvbulkpipe
(
serial
->
dev
,
port
->
bulk_in_endpointAddress
),
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
ipaq_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
return
;
...
...
@@ -403,7 +403,7 @@ static int ipaq_write_flush(struct usb_serial_port *port)
usb_sndbulkpipe
(
serial
->
dev
,
port
->
bulk_out_endpointAddress
),
port
->
write_urb
->
transfer_buffer
,
count
,
ipaq_write_bulk_callback
,
port
);
result
=
usb_submit_urb
(
urb
);
result
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
result
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
}
...
...
drivers/usb/serial/ir-usb.c
View file @
5a2c4a8b
...
...
@@ -289,7 +289,7 @@ static int ir_open (struct usb_serial_port *port, struct file *filp)
ir_read_bulk_callback
,
port
);
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
)
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
=
USB_QUEUE_BULK
|
USB_ZERO_PACKET
;
result
=
usb_submit_urb
(
port
->
write_urb
);
result
=
usb_submit_urb
(
port
->
write_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
"%s - failed submitting write urb, error %d"
,
__FUNCTION__
,
result
);
else
...
...
@@ -492,7 +492,7 @@ static void ir_read_bulk_callback (struct urb *urb)
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
)
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
=
USB_QUEUE_BULK
|
USB_ZERO_PACKET
;
result
=
usb_submit_urb
(
port
->
write_urb
);
result
=
usb_submit_urb
(
port
->
write_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
"%s - failed submitting write urb, error %d"
,
__FUNCTION__
,
result
);
}
...
...
drivers/usb/serial/keyspan.c
View file @
5a2c4a8b
...
...
@@ -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
->
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
);
}
p_priv
->
tx_start_time
[
flip
]
=
jiffies
;
...
...
@@ -436,7 +436,7 @@ static void usa26_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */
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
);
}
return
;
...
...
@@ -535,7 +535,7 @@ static void usa26_instat_callback(struct urb *urb)
exit:
/* Resubmit urb so we continue receiving */
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
);
}
}
...
...
@@ -586,7 +586,7 @@ static void usa28_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */
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
);
}
...
...
@@ -671,7 +671,7 @@ static void usa28_instat_callback(struct urb *urb)
exit:
/* Resubmit urb so we continue receiving */
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
);
}
}
...
...
@@ -764,7 +764,7 @@ static void usa49_instat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */
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
);
}
}
...
...
@@ -819,7 +819,7 @@ static void usa49_indat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving */
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
);
}
}
...
...
@@ -880,7 +880,7 @@ static int keyspan_open (struct usb_serial_port *port, struct file *filp)
if
((
urb
=
p_priv
->
in_urbs
[
i
])
==
NULL
)
continue
;
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
);
}
}
...
...
@@ -1408,7 +1408,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial,
this_urb
->
transfer_buffer_length
=
sizeof
(
msg
);
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
);
}
#if 0
...
...
@@ -1494,7 +1494,7 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial,
this_urb
->
transfer_buffer_length
=
sizeof
(
msg
);
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
"
);
}
#if 0
...
...
@@ -1622,7 +1622,7 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
this_urb
->
transfer_buffer_length
=
sizeof
(
msg
);
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
);
}
#if 0
...
...
@@ -1708,7 +1708,7 @@ static int keyspan_startup (struct usb_serial *serial)
keyspan_setup_urbs
(
serial
);
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
);
}
...
...
drivers/usb/serial/keyspan_pda.c
View file @
5a2c4a8b
...
...
@@ -292,7 +292,7 @@ static void keyspan_pda_rx_unthrottle (struct usb_serial_port *port)
/* just restart the receive interrupt URB */
dbg
(
"keyspan_pda_rx_unthrottle port %d"
,
port
->
number
);
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"
);
return
;
}
...
...
@@ -584,7 +584,7 @@ static int keyspan_pda_write(struct usb_serial_port *port, int from_user,
priv
->
tx_room
-=
count
;
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
)
{
dbg
(
" usb_submit_urb(write bulk) failed"
);
goto
exit
;
...
...
@@ -699,7 +699,7 @@ static int keyspan_pda_open (struct usb_serial_port *port, struct file *filp)
/*Start reading from the device*/
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
)
{
dbg
(
__FUNCTION__
" - usb_submit_urb(read int) failed"
);
goto
error
;
...
...
drivers/usb/serial/kl5kusb105.c
View file @
5a2c4a8b
...
...
@@ -404,7 +404,7 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp)
port
);
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
)
{
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
rc
);
...
...
@@ -567,7 +567,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user,
/* send the data out the bulk port */
result
=
usb_submit_urb
(
urb
);
result
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
result
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
...
...
@@ -734,7 +734,7 @@ static void klsi_105_read_bulk_callback (struct urb *urb)
port
->
read_urb
->
transfer_buffer_length
,
klsi_105_read_bulk_callback
,
port
);
rc
=
usb_submit_urb
(
port
->
read_urb
);
rc
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
rc
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
rc
);
...
...
@@ -1041,7 +1041,7 @@ static void klsi_105_unthrottle (struct usb_serial_port *port)
down
(
&
port
->
sem
);
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
)
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
...
...
drivers/usb/serial/mct_u232.c
View file @
5a2c4a8b
...
...
@@ -384,14 +384,14 @@ static int mct_u232_open (struct usb_serial_port *port, struct file *filp)
}
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
)
{
err
(
"usb_submit_urb(read bulk) failed"
);
goto
exit
;
}
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
)
err
(
" usb_submit_urb(read int) failed"
);
...
...
@@ -482,7 +482,7 @@ static int mct_u232_write (struct usb_serial_port *port, int from_user,
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
)
{
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
...
...
drivers/usb/serial/omninet.c
View file @
5a2c4a8b
...
...
@@ -179,7 +179,7 @@ static int omninet_open (struct usb_serial_port *port, struct file *filp)
usb_rcvbulkpipe
(
serial
->
dev
,
port
->
bulk_in_endpointAddress
),
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
omninet_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
}
...
...
@@ -274,7 +274,7 @@ static void omninet_read_bulk_callback (struct urb *urb)
usb_rcvbulkpipe
(
serial
->
dev
,
port
->
bulk_in_endpointAddress
),
urb
->
transfer_buffer
,
urb
->
transfer_buffer_length
,
omninet_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
urb
);
result
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
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
wport
->
write_urb
->
transfer_buffer_length
=
64
;
wport
->
write_urb
->
dev
=
serial
->
dev
;
result
=
usb_submit_urb
(
wport
->
write_urb
);
result
=
usb_submit_urb
(
wport
->
write_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
else
...
...
drivers/usb/serial/pl2303.c
View file @
5a2c4a8b
...
...
@@ -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
->
dev
=
port
->
serial
->
dev
;
result
=
usb_submit_urb
(
port
->
write_urb
);
result
=
usb_submit_urb
(
port
->
write_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
else
...
...
@@ -404,7 +404,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp)
dbg
(
__FUNCTION__
" - submitting read urb"
);
port
->
read_urb
->
dev
=
serial
->
dev
;
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
{
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
up
(
&
port
->
sem
);
...
...
@@ -414,7 +414,7 @@ static int pl2303_open (struct usb_serial_port *port, struct file *filp)
dbg
(
__FUNCTION__
" - submitting interrupt urb"
);
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
)
{
err
(
__FUNCTION__
" - failed submitting interrupt urb, error %d"
,
result
);
up
(
&
port
->
sem
);
...
...
@@ -652,7 +652,7 @@ static void pl2303_read_bulk_callback (struct urb *urb)
dbg
(
__FUNCTION__
" - caught -EPROTO, resubmitting the urb"
);
urb
->
status
=
0
;
urb
->
dev
=
serial
->
dev
;
result
=
usb_submit_urb
(
urb
);
result
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
return
;
...
...
@@ -677,7 +677,7 @@ static void pl2303_read_bulk_callback (struct urb *urb)
/* Schedule the next read _if_ we are still open */
if
(
port
->
open_count
)
{
urb
->
dev
=
serial
->
dev
;
result
=
usb_submit_urb
(
urb
);
result
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
}
...
...
@@ -706,7 +706,7 @@ static void pl2303_write_bulk_callback (struct urb *urb)
dbg
(
__FUNCTION__
" - nonzero write bulk status received: %d"
,
urb
->
status
);
port
->
write_urb
->
transfer_buffer_length
=
1
;
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
)
err
(
__FUNCTION__
" - failed resubmitting write urb, error %d"
,
result
);
...
...
drivers/usb/serial/usbserial.c
View file @
5a2c4a8b
...
...
@@ -813,7 +813,7 @@ static int generic_open (struct usb_serial_port *port, struct file *filp)
serial
->
type
->
read_bulk_callback
:
generic_read_bulk_callback
),
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
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
generic_write_bulk_callback
),
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
)
err
(
__FUNCTION__
" - failed submitting write urb, error %d"
,
result
);
else
...
...
@@ -987,7 +987,7 @@ static void generic_read_bulk_callback (struct urb *urb)
((
serial
->
type
->
read_bulk_callback
)
?
serial
->
type
->
read_bulk_callback
:
generic_read_bulk_callback
),
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
}
...
...
drivers/usb/serial/visor.c
View file @
5a2c4a8b
...
...
@@ -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_length
,
visor_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
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
urb
->
transfer_flags
|=
USB_QUEUE_BULK
;
/* send it down the pipe */
status
=
usb_submit_urb
(
urb
);
status
=
usb_submit_urb
(
urb
,
GFP_KERNEL
);
if
(
status
)
{
err
(
__FUNCTION__
" - usb_submit_urb(write bulk) failed with status = %d"
,
status
);
bytes_sent
=
status
;
...
...
@@ -520,7 +520,7 @@ static void visor_read_bulk_callback (struct urb *urb)
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
visor_read_bulk_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
__FUNCTION__
" - failed resubmitting read urb, error %d"
,
result
);
return
;
...
...
@@ -551,7 +551,7 @@ static void visor_unthrottle (struct usb_serial_port *port)
down
(
&
port
->
sem
);
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
)
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
result
);
...
...
drivers/usb/serial/whiteheat.c
View file @
5a2c4a8b
...
...
@@ -240,7 +240,7 @@ static void command_port_read_callback (struct urb *urb)
usb_rcvbulkpipe
(
serial
->
dev
,
port
->
bulk_in_endpointAddress
),
port
->
read_urb
->
transfer_buffer
,
port
->
read_urb
->
transfer_buffer_length
,
command_port_read_callback
,
port
);
result
=
usb_submit_urb
(
port
->
read_urb
);
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
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
memcpy
(
&
transfer_buffer
[
1
],
data
,
datasize
);
port
->
write_urb
->
transfer_buffer_length
=
datasize
+
1
;
port
->
write_urb
->
dev
=
serial
->
dev
;
retval
=
usb_submit_urb
(
port
->
write_urb
);
retval
=
usb_submit_urb
(
port
->
write_urb
,
GFP_KERNEL
);
if
(
retval
)
{
dbg
(
__FUNCTION__
" - submit urb failed"
);
goto
exit
;
...
...
@@ -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
->
dev
=
port
->
serial
->
dev
;
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
)
{
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
retval
);
goto
error_exit
;
...
...
@@ -336,7 +336,7 @@ static int whiteheat_open (struct usb_serial_port *port, struct file *filp)
/* Start reading from the device */
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
)
{
err
(
__FUNCTION__
" - failed submitting read urb, error %d"
,
retval
);
goto
error_exit
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment