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
3de64651
Commit
3de64651
authored
Jul 15, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix irq urb in hpusbscsi
this fixes the completion handler for the interrupt urb in hpusbscsi.
parent
db74e1e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/usb/image/hpusbscsi.c
drivers/usb/image/hpusbscsi.c
+7
-2
No files found.
drivers/usb/image/hpusbscsi.c
View file @
3de64651
...
@@ -306,7 +306,10 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte);
...
@@ -306,7 +306,10 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte);
if
(
unlikely
(
u
->
status
<
0
))
{
if
(
unlikely
(
u
->
status
<
0
))
{
if
(
likely
(
hpusbscsi
->
state
!=
HP_STATE_FREE
))
if
(
likely
(
hpusbscsi
->
state
!=
HP_STATE_FREE
))
handle_usb_error
(
hpusbscsi
);
handle_usb_error
(
hpusbscsi
);
return
;
if
(
u
->
status
==
-
ECONNRESET
||
u
->
status
==
-
ENOENT
||
u
->
status
==
-
ESHUTDOWN
)
return
;
else
goto
resub
;
}
}
scsi_state
=
hpusbscsi
->
scsi_state_byte
;
scsi_state
=
hpusbscsi
->
scsi_state_byte
;
...
@@ -348,6 +351,8 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte);
...
@@ -348,6 +351,8 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte);
TRACE_STATE
;
TRACE_STATE
;
break
;
break
;
}
}
resub:
usb_submit_urb
(
u
,
GFP_ATOMIC
);
}
}
static
void
simple_command_callback
(
struct
urb
*
u
,
struct
pt_regs
*
regs
)
static
void
simple_command_callback
(
struct
urb
*
u
,
struct
pt_regs
*
regs
)
...
@@ -427,7 +432,7 @@ static void simple_done (struct urb *u, struct pt_regs *regs)
...
@@ -427,7 +432,7 @@ static void simple_done (struct urb *u, struct pt_regs *regs)
hpusbscsi
->
state
=
HP_STATE_WAIT
;
hpusbscsi
->
state
=
HP_STATE_WAIT
;
}
else
{
}
else
{
issue_request_sense
(
hpusbscsi
);
issue_request_sense
(
hpusbscsi
);
}
}
}
}
}
else
{
}
else
{
if
(
likely
(
hpusbscsi
->
scallback
!=
NULL
))
if
(
likely
(
hpusbscsi
->
scallback
!=
NULL
))
...
...
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