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
021859c1
Commit
021859c1
authored
Aug 04, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI 53c700] clean up cli code
parent
cd03e0b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
drivers/scsi/53c700.c
drivers/scsi/53c700.c
+2
-10
No files found.
drivers/scsi/53c700.c
View file @
021859c1
...
...
@@ -1360,6 +1360,8 @@ NCR_700_flush_fifo(struct Scsi_Host *host) {
}
/* The queue lock with interrupts disabled must be held on entry to
* this function */
STATIC
int
NCR_700_start_command
(
Scsi_Cmnd
*
SCp
)
{
...
...
@@ -1367,17 +1369,13 @@ NCR_700_start_command(Scsi_Cmnd *SCp)
(
struct
NCR_700_command_slot
*
)
SCp
->
host_scribble
;
struct
NCR_700_Host_Parameters
*
hostdata
=
(
struct
NCR_700_Host_Parameters
*
)
SCp
->
host
->
hostdata
[
0
];
unsigned
long
flags
;
__u16
count
=
1
;
/* for IDENTIFY message */
save_flags
(
flags
);
cli
();
if
(
hostdata
->
state
!=
NCR_700_HOST_FREE
)
{
/* keep this inside the lock to close the race window where
* the running command finishes on another CPU while we don't
* change the state to queued on this one */
slot
->
state
=
NCR_700_SLOT_QUEUED
;
restore_flags
(
flags
);
DEBUG
((
"scsi%d: host busy, queueing command %p, slot %p
\n
"
,
SCp
->
host
->
host_no
,
slot
->
cmnd
,
slot
));
...
...
@@ -1444,12 +1442,6 @@ NCR_700_start_command(Scsi_Cmnd *SCp)
NCR_700_writel
(
slot
->
temp
,
SCp
->
host
,
TEMP_REG
);
NCR_700_writel
(
slot
->
resume_offset
,
SCp
->
host
,
DSP_REG
);
/* allow interrupts here so that if we're selected we can take
* a selection interrupt. The script start may not be
* effective in this case, but the selection interrupt will
* save our command in that case */
restore_flags
(
flags
);
return
1
;
}
...
...
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