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
40509e42
Commit
40509e42
authored
Oct 29, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: usb serial driver fixes due to USB structure changes.
parent
63bc762f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/usb/serial/io_ti.c
drivers/usb/serial/io_ti.c
+4
-4
drivers/usb/serial/safe_serial.c
drivers/usb/serial/safe_serial.c
+1
-1
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb-serial.c
+1
-1
No files found.
drivers/usb/serial/io_ti.c
View file @
40509e42
...
...
@@ -588,10 +588,10 @@ static int TIChooseConfiguration (struct usb_device *dev)
// we want. However, we just support one config at this point,
// configuration # 1, which is Config Descriptor 0.
dbg
(
"%s - Number of Interfaces = %d"
,
__FUNCTION__
,
dev
->
config
->
bNumInterfaces
);
dbg
(
"%s - MAX Power = %d"
,
__FUNCTION__
,
dev
->
config
->
MaxPower
*
2
);
dbg
(
"%s - Number of Interfaces = %d"
,
__FUNCTION__
,
dev
->
config
->
desc
.
bNumInterfaces
);
dbg
(
"%s - MAX Power = %d"
,
__FUNCTION__
,
dev
->
config
->
desc
.
b
MaxPower
*
2
);
if
(
dev
->
config
->
bNumInterfaces
!=
1
)
{
if
(
dev
->
config
->
desc
.
bNumInterfaces
!=
1
)
{
err
(
"%s - bNumInterfaces is not 1, ERROR!"
,
__FUNCTION__
);
return
-
ENODEV
;
}
...
...
@@ -980,7 +980,7 @@ static int TIDownloadFirmware (struct edgeport_serial *serial)
if
(
status
)
return
status
;
interface
=
serial
->
serial
->
dev
->
config
->
interface
->
altsetting
;
interface
=
&
serial
->
serial
->
dev
->
config
->
interface
->
altsetting
->
desc
;
if
(
!
interface
)
{
err
(
"%s - no interface set, error!"
,
__FUNCTION__
);
return
-
ENODEV
;
...
...
drivers/usb/serial/safe_serial.c
View file @
40509e42
...
...
@@ -393,7 +393,7 @@ static int safe_write_room (struct usb_serial_port *port)
static
int
safe_startup
(
struct
usb_serial
*
serial
)
{
switch
(
serial
->
interface
->
altsetting
->
bInterfaceProtocol
)
{
switch
(
serial
->
interface
->
altsetting
->
desc
.
bInterfaceProtocol
)
{
case
LINEO_SAFESERIAL_CRC
:
break
;
case
LINEO_SAFESERIAL_CRC_PADDED
:
...
...
drivers/usb/serial/usb-serial.c
View file @
40509e42
...
...
@@ -1250,7 +1250,7 @@ int usb_serial_probe(struct usb_interface *interface,
interface
=
&
dev
->
actconfig
->
interface
[
0
];
iface_desc
=
&
interface
->
altsetting
[
0
];
for
(
i
=
0
;
i
<
iface_desc
->
desc
.
bNumEndpoints
;
++
i
)
{
endpoint
=
&
iface_desc
->
endpoint
[
i
];
endpoint
=
&
iface_desc
->
endpoint
[
i
]
.
desc
;
if
((
endpoint
->
bEndpointAddress
&
0x80
)
&&
((
endpoint
->
bmAttributes
&
3
)
==
0x03
))
{
/* we found a interrupt in endpoint */
...
...
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