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
226152ab
Commit
226152ab
authored
Oct 27, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: fix the usb net drivers due to interrupt urb no automatic resubmission change to the usb core.
parent
2206c3be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.c
+17
-3
No files found.
drivers/usb/net/usbnet.c
View file @
226152ab
...
@@ -449,10 +449,24 @@ static void gl_interrupt_complete (struct urb *urb)
...
@@ -449,10 +449,24 @@ static void gl_interrupt_complete (struct urb *urb)
{
{
int
status
=
urb
->
status
;
int
status
=
urb
->
status
;
switch
(
status
)
{
case
0
:
/* success */
break
;
case
-
ECONNRESET
:
case
-
ENOENT
:
case
-
ESHUTDOWN
:
/* this urb is terminated, clean up */
dbg
(
"%s - urb shutting down with status: %d"
,
__FUNCTION__
,
status
);
return
;
default:
dbg
(
"%s - nonzero urb status received: %d"
,
__FUNCTION__
,
urb
->
status
);
}
status
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
status
)
if
(
status
)
dbg
(
"gl_interrupt_complete fail - %X"
,
status
);
err
(
"%s - usb_submit_urb failed with result %d"
,
else
__FUNCTION__
,
status
);
dbg
(
"gl_interrupt_complete success..."
);
}
}
static
int
gl_interrupt_read
(
struct
usbnet
*
dev
)
static
int
gl_interrupt_read
(
struct
usbnet
*
dev
)
...
...
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