Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
USB Relay Box 1
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
USB Relay Box 1
Commits
d3f819b3
Commit
d3f819b3
authored
Apr 30, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Bug fix in cp210x driver. Takes ioctl argument without treatment.
parent
1a316288
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
cp210x.c
sw/cp210x-driver/cp210x.c
+1
-5
No files found.
sw/cp210x-driver/cp210x.c
View file @
d3f819b3
...
...
@@ -521,16 +521,12 @@ static int cp210x_ioctl(struct tty_struct *tty, struct file *file,
case
IOCTL_GPIOSET
:
if
((
port_priv
->
bPartNumber
==
CP2103_PARTNUM
)
||
(
port_priv
->
bPartNumber
==
CP2104_PARTNUM
))
{
latch_mask_setting_to_write
=
*
(
unsigned
int
*
)
arg
&
0x000000FF
;
latch_mask_setting_to_write
|=
(
*
(
unsigned
int
*
)
arg
&
0x00FF0000
)
>>
8
;
result
=
usb_control_msg
(
port
->
serial
->
dev
,
usb_sndctrlpipe
(
port
->
serial
->
dev
,
0
),
CP210X_VENDOR_SPECIFIC
,
REQTYPE_HOST_TO_DEVICE
,
CP210X_WRITE_LATCH
,
latch_mask_setting_to_write
,
*
(
unsigned
int
*
)
arg
,
NULL
,
0
,
300
);
if
(
result
!=
0
)
{
return
-
EPROTO
;
...
...
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