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
41d75b5b
Commit
41d75b5b
authored
Dec 11, 2003
by
Thomas Chen
Committed by
Greg Kroah-Hartman
Dec 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix bug when errors happen in ioedgeport driver
parent
dca5d14a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+8
-4
No files found.
drivers/usb/serial/io_edgeport.c
View file @
41d75b5b
...
...
@@ -1488,16 +1488,20 @@ static void send_more_port_data(struct edgeport_serial *edge_serial, struct edge
usb_sndbulkpipe
(
edge_serial
->
serial
->
dev
,
edge_serial
->
bulk_out_endpoint
),
buffer
,
count
+
2
,
edge_bulk_out_data_callback
,
edge_port
);
/* decrement the number of credits we have by the number we just sent */
edge_port
->
txCredits
-=
count
;
edge_port
->
icount
.
tx
+=
count
;
urb
->
dev
=
edge_serial
->
serial
->
dev
;
status
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
status
)
{
/* something went wrong */
dbg
(
"%s - usb_submit_urb(write bulk) failed"
,
__FUNCTION__
);
edge_port
->
write_in_progress
=
FALSE
;
}
else
{
/*
decrement the number of credits we have by the number we just sent
*/
edge_port
->
txCredits
-
=
count
;
edge_port
->
icount
.
tx
+
=
count
;
/*
revert the credits as something bad happened.
*/
edge_port
->
txCredits
+
=
count
;
edge_port
->
icount
.
tx
-
=
count
;
}
dbg
(
"%s wrote %d byte(s) TxCredit %d, Fifo %d"
,
__FUNCTION__
,
count
,
edge_port
->
txCredits
,
fifo
->
count
);
}
...
...
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