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
nexedi
linux
Commits
2a0ab0e7
Commit
2a0ab0e7
authored
Mar 12, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB edgeport driver
Fixed bug that prevented multiple edgeport devices from working at once.
parent
a4d235aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+14
-7
No files found.
drivers/usb/serial/io_edgeport.c
View file @
2a0ab0e7
...
...
@@ -2,7 +2,7 @@
* Edgeport USB Serial Converter driver
*
* Copyright(c) 2000 Inside Out Networks, All rights reserved.
* Copyright(c) 2001 Greg Kroah-Hartman <greg@kroah.com>
* Copyright(c) 2001
-2002
Greg Kroah-Hartman <greg@kroah.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -25,6 +25,9 @@
*
* Version history:
*
* 2.3 2002_03_08 greg kroah-hartman
* - fixed bug when multiple devices were attached at the same time.
*
* 2.2 2001_11_14 greg kroah-hartman
* - fixed bug in edge_close that kept the port from being used more
* than once.
...
...
@@ -1438,8 +1441,8 @@ static void send_more_port_data(struct edgeport_serial *edge_serial, struct edge
edge_port
->
write_in_progress
=
FALSE
;
return
;
}
buffer
[
0
]
=
IOSP_BUILD_DATA_HDR1
(
edge_port
->
port
->
number
,
count
);
buffer
[
1
]
=
IOSP_BUILD_DATA_HDR2
(
edge_port
->
port
->
number
,
count
);
buffer
[
0
]
=
IOSP_BUILD_DATA_HDR1
(
edge_port
->
port
->
number
-
edge_port
->
port
->
serial
->
minor
,
count
);
buffer
[
1
]
=
IOSP_BUILD_DATA_HDR2
(
edge_port
->
port
->
number
-
edge_port
->
port
->
serial
->
minor
,
count
);
/* now copy our data */
bytesleft
=
fifo
->
size
-
fifo
->
tail
;
...
...
@@ -2436,7 +2439,9 @@ static int send_iosp_ext_cmd (struct edgeport_port *edge_port, __u8 command, __u
currentCommand
=
buffer
;
MAKE_CMD_EXT_CMD
(
&
currentCommand
,
&
length
,
edge_port
->
port
->
number
,
command
,
param
);
MAKE_CMD_EXT_CMD
(
&
currentCommand
,
&
length
,
edge_port
->
port
->
number
-
edge_port
->
port
->
serial
->
minor
,
command
,
param
);
status
=
write_cmd_usb
(
edge_port
,
buffer
,
length
);
if
(
status
)
{
...
...
@@ -2516,9 +2521,9 @@ static int send_cmd_write_baud_rate (struct edgeport_port *edge_port, int baudRa
int
cmdLen
=
0
;
int
divisor
;
int
status
;
unsigned
char
number
=
edge_port
->
port
->
number
;
unsigned
char
number
=
edge_port
->
port
->
number
-
edge_port
->
port
->
serial
->
minor
;
dbg
(
__FUNCTION__
" - port = %d, baud = %d"
,
number
,
baudRate
);
dbg
(
__FUNCTION__
" - port = %d, baud = %d"
,
edge_port
->
port
->
number
,
baudRate
);
status
=
calc_baud_rate_divisor
(
baudRate
,
&
divisor
);
if
(
status
)
{
...
...
@@ -2621,7 +2626,9 @@ static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 r
currCmd
=
cmdBuffer
;
// Build a cmd in the buffer to write the given register
MAKE_CMD_WRITE_REG
(
&
currCmd
,
&
cmdLen
,
edge_port
->
port
->
number
,
regNum
,
regValue
);
MAKE_CMD_WRITE_REG
(
&
currCmd
,
&
cmdLen
,
edge_port
->
port
->
number
-
edge_port
->
port
->
serial
->
minor
,
regNum
,
regValue
);
status
=
write_cmd_usb
(
edge_port
,
cmdBuffer
,
cmdLen
);
if
(
status
)
{
...
...
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