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
d09b74a3
Commit
d09b74a3
authored
Sep 30, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: queue_task() fixups
parent
06ccf012
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
19 additions
and
62 deletions
+19
-62
drivers/usb/class/bluetty.c
drivers/usb/class/bluetty.c
+1
-3
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.c
+1
-2
drivers/usb/serial/cyberjack.c
drivers/usb/serial/cyberjack.c
+3
-11
drivers/usb/serial/empeg.c
drivers/usb/serial/empeg.c
+1
-5
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio.c
+1
-3
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+2
-4
drivers/usb/serial/ir-usb.c
drivers/usb/serial/ir-usb.c
+1
-4
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+2
-4
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+1
-4
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mct_u232.c
+1
-2
drivers/usb/serial/omninet.c
drivers/usb/serial/omninet.c
+1
-4
drivers/usb/serial/pl2303.c
drivers/usb/serial/pl2303.c
+1
-4
drivers/usb/serial/usbserial.c
drivers/usb/serial/usbserial.c
+1
-4
drivers/usb/serial/visor.c
drivers/usb/serial/visor.c
+1
-4
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.c
+1
-4
No files found.
drivers/usb/class/bluetty.c
View file @
d09b74a3
...
@@ -1006,9 +1006,7 @@ static void bluetooth_write_bulk_callback (struct urb *urb)
...
@@ -1006,9 +1006,7 @@ static void bluetooth_write_bulk_callback (struct urb *urb)
}
}
/* wake up our little function to let the tty layer know that something happened */
/* wake up our little function to let the tty layer know that something happened */
queue_task
(
&
bluetooth
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
bluetooth
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
...
...
drivers/usb/class/cdc-acm.c
View file @
d09b74a3
...
@@ -272,8 +272,7 @@ static void acm_write_bulk(struct urb *urb)
...
@@ -272,8 +272,7 @@ static void acm_write_bulk(struct urb *urb)
if
(
urb
->
status
)
if
(
urb
->
status
)
dbg
(
"nonzero write bulk status received: %d"
,
urb
->
status
);
dbg
(
"nonzero write bulk status received: %d"
,
urb
->
status
);
queue_task
(
&
acm
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
acm
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
}
}
static
void
acm_softint
(
void
*
private
)
static
void
acm_softint
(
void
*
private
)
...
...
drivers/usb/serial/cyberjack.c
View file @
d09b74a3
...
@@ -437,9 +437,7 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
...
@@ -437,9 +437,7 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
/* Throw away data. No better idea what to do with it. */
/* Throw away data. No better idea what to do with it. */
priv
->
wrfilled
=
0
;
priv
->
wrfilled
=
0
;
priv
->
wrsent
=
0
;
priv
->
wrsent
=
0
;
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
goto
exit
;
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
dbg
(
"%s - priv->wrsent=%d"
,
__FUNCTION__
,
priv
->
wrsent
);
dbg
(
"%s - priv->wrsent=%d"
,
__FUNCTION__
,
priv
->
wrsent
);
...
@@ -453,16 +451,10 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
...
@@ -453,16 +451,10 @@ static void cyberjack_write_bulk_callback (struct urb *urb)
priv
->
wrfilled
=
0
;
priv
->
wrfilled
=
0
;
priv
->
wrsent
=
0
;
priv
->
wrsent
=
0
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
exit:
mark_bh
(
IMMEDIATE_BH
);
schedule_task
(
&
port
->
tqueue
);
return
;
}
}
static
int
__init
cyberjack_init
(
void
)
static
int
__init
cyberjack_init
(
void
)
...
...
drivers/usb/serial/empeg.c
View file @
d09b74a3
...
@@ -362,11 +362,7 @@ static void empeg_write_bulk_callback (struct urb *urb)
...
@@ -362,11 +362,7 @@ static void empeg_write_bulk_callback (struct urb *urb)
return
;
return
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
...
...
drivers/usb/serial/ftdi_sio.c
View file @
d09b74a3
...
@@ -484,10 +484,8 @@ static void ftdi_sio_write_bulk_callback (struct urb *urb)
...
@@ -484,10 +484,8 @@ static void ftdi_sio_write_bulk_callback (struct urb *urb)
dbg
(
"nonzero write bulk status received: %d"
,
urb
->
status
);
dbg
(
"nonzero write bulk status received: %d"
,
urb
->
status
);
return
;
return
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
mark_bh
(
IMMEDIATE_BH
);
return
;
schedule_task
(
&
port
->
tqueue
)
;
}
/* ftdi_sio_write_bulk_callback */
}
/* ftdi_sio_write_bulk_callback */
...
...
drivers/usb/serial/ipaq.c
View file @
d09b74a3
...
@@ -465,10 +465,8 @@ static void ipaq_write_bulk_callback(struct urb *urb)
...
@@ -465,10 +465,8 @@ static void ipaq_write_bulk_callback(struct urb *urb)
priv
->
active
=
0
;
priv
->
active
=
0
;
spin_unlock_irqrestore
(
&
write_list_lock
,
flags
);
spin_unlock_irqrestore
(
&
write_list_lock
,
flags
);
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
mark_bh
(
IMMEDIATE_BH
);
schedule_task
(
&
port
->
tqueue
);
return
;
}
}
static
int
ipaq_write_room
(
struct
usb_serial_port
*
port
)
static
int
ipaq_write_room
(
struct
usb_serial_port
*
port
)
...
...
drivers/usb/serial/ir-usb.c
View file @
d09b74a3
...
@@ -426,10 +426,7 @@ static void ir_write_bulk_callback (struct urb *urb)
...
@@ -426,10 +426,7 @@ static void ir_write_bulk_callback (struct urb *urb)
urb
->
actual_length
,
urb
->
actual_length
,
urb
->
transfer_buffer
);
urb
->
transfer_buffer
);
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
static
void
ir_read_bulk_callback
(
struct
urb
*
urb
)
static
void
ir_read_bulk_callback
(
struct
urb
*
urb
)
...
...
drivers/usb/serial/keyspan.c
View file @
d09b74a3
...
@@ -447,10 +447,8 @@ static void usa2x_outdat_callback(struct urb *urb)
...
@@ -447,10 +447,8 @@ static void usa2x_outdat_callback(struct urb *urb)
p_priv
=
(
struct
keyspan_port_private
*
)(
port
->
private
);
p_priv
=
(
struct
keyspan_port_private
*
)(
port
->
private
);
dbg
(
"%s - urb %d"
,
__FUNCTION__
,
urb
==
p_priv
->
out_urbs
[
1
]);
dbg
(
"%s - urb %d"
,
__FUNCTION__
,
urb
==
p_priv
->
out_urbs
[
1
]);
if
(
port
->
open_count
)
{
if
(
port
->
open_count
)
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
}
}
}
static
void
usa26_inack_callback
(
struct
urb
*
urb
)
static
void
usa26_inack_callback
(
struct
urb
*
urb
)
...
...
drivers/usb/serial/kl5kusb105.c
View file @
d09b74a3
...
@@ -577,10 +577,7 @@ static void klsi_105_write_bulk_callback ( struct urb *urb)
...
@@ -577,10 +577,7 @@ static void klsi_105_write_bulk_callback ( struct urb *urb)
}
}
/* from generic_write_bulk_callback */
/* from generic_write_bulk_callback */
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
/* klsi_105_write_bulk_completion_callback */
}
/* klsi_105_write_bulk_completion_callback */
...
...
drivers/usb/serial/mct_u232.c
View file @
d09b74a3
...
@@ -507,8 +507,7 @@ static void mct_u232_write_bulk_callback (struct urb *urb)
...
@@ -507,8 +507,7 @@ static void mct_u232_write_bulk_callback (struct urb *urb)
}
else
{
}
else
{
/* from generic_write_bulk_callback */
/* from generic_write_bulk_callback */
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
}
}
return
;
return
;
...
...
drivers/usb/serial/omninet.c
View file @
d09b74a3
...
@@ -359,12 +359,9 @@ static void omninet_write_bulk_callback (struct urb *urb)
...
@@ -359,12 +359,9 @@ static void omninet_write_bulk_callback (struct urb *urb)
return
;
return
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
// dbg("omninet_write_bulk_callback, tty %0x\n", tty);
// dbg("omninet_write_bulk_callback, tty %0x\n", tty);
return
;
}
}
...
...
drivers/usb/serial/pl2303.c
View file @
d09b74a3
...
@@ -705,10 +705,7 @@ static void pl2303_write_bulk_callback (struct urb *urb)
...
@@ -705,10 +705,7 @@ static void pl2303_write_bulk_callback (struct urb *urb)
return
;
return
;
}
}
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
...
...
drivers/usb/serial/usbserial.c
View file @
d09b74a3
...
@@ -1092,10 +1092,7 @@ static void generic_write_bulk_callback (struct urb *urb)
...
@@ -1092,10 +1092,7 @@ static void generic_write_bulk_callback (struct urb *urb)
usb_serial_port_softint
((
void
*
)
port
);
usb_serial_port_softint
((
void
*
)
port
);
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_tasks
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
static
void
generic_shutdown
(
struct
usb_serial
*
serial
)
static
void
generic_shutdown
(
struct
usb_serial
*
serial
)
...
...
drivers/usb/serial/visor.c
View file @
d09b74a3
...
@@ -458,10 +458,7 @@ static void visor_write_bulk_callback (struct urb *urb)
...
@@ -458,10 +458,7 @@ static void visor_write_bulk_callback (struct urb *urb)
/* free up the transfer buffer, as usb_free_urb() does not do this */
/* free up the transfer buffer, as usb_free_urb() does not do this */
kfree
(
urb
->
transfer_buffer
);
kfree
(
urb
->
transfer_buffer
);
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
...
...
drivers/usb/serial/whiteheat.c
View file @
d09b74a3
...
@@ -918,10 +918,7 @@ static void whiteheat_write_callback(struct urb *urb)
...
@@ -918,10 +918,7 @@ static void whiteheat_write_callback(struct urb *urb)
usb_serial_port_softint
((
void
*
)
port
);
usb_serial_port_softint
((
void
*
)
port
);
queue_task
(
&
port
->
tqueue
,
&
tq_immediate
);
schedule_task
(
&
port
->
tqueue
);
mark_bh
(
IMMEDIATE_BH
);
return
;
}
}
...
...
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