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
99675e6e
Commit
99675e6e
authored
Mar 11, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up spinlocking/IRQ handling in SCSI drivers for Acorn machines.
parent
a77eaeda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
drivers/acorn/scsi/acornscsi.c
drivers/acorn/scsi/acornscsi.c
+2
-2
drivers/acorn/scsi/fas216.c
drivers/acorn/scsi/fas216.c
+9
-9
No files found.
drivers/acorn/scsi/acornscsi.c
View file @
99675e6e
...
...
@@ -2583,10 +2583,10 @@ int acornscsi_queuecmd(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
done
(
SCpnt
);
return
0
;
}
save_flags_cli
(
flags
);
local_irq_save
(
flags
);
if
(
host
->
scsi
.
phase
==
PHASE_IDLE
)
acornscsi_kick
(
host
);
restore_flags
(
flags
);
local_irq_restore
(
flags
);
}
return
0
;
}
...
...
drivers/acorn/scsi/fas216.c
View file @
99675e6e
...
...
@@ -2137,7 +2137,7 @@ int fas216_command(Scsi_Cmnd *SCpnt)
* However, we must re-enable interrupts, or else we'll be
* waiting forever.
*/
spin_unlock_irq
(
&
io_reque
st_lock
);
spin_unlock_irq
(
info
->
host
->
ho
st_lock
);
while
(
!
info
->
internal_done
)
{
/*
...
...
@@ -2149,13 +2149,13 @@ int fas216_command(Scsi_Cmnd *SCpnt)
* to be some time (eg, disconnected).
*/
if
(
inb
(
REG_STAT
(
info
))
&
STAT_INT
)
{
spin_lock_irq
(
&
io_reque
st_lock
);
spin_lock_irq
(
info
->
host
->
ho
st_lock
);
fas216_intr
(
info
->
host
);
spin_unlock_irq
(
&
io_reque
st_lock
);
spin_unlock_irq
(
info
->
host
->
ho
st_lock
);
}
}
spin_lock_irq
(
&
io_reque
st_lock
);
spin_lock_irq
(
info
->
host
->
ho
st_lock
);
return
SCpnt
->
result
;
}
...
...
@@ -2459,13 +2459,13 @@ int fas216_eh_host_reset(Scsi_Cmnd *SCpnt)
/*
* Ugly ugly ugly!
* We need to release the
io_reque
st_lock and enable
* We need to release the
ho
st_lock and enable
* IRQs if we sleep, but we must relock and disable
* IRQs after the sleep.
*/
spin_unlock_irq
(
&
io_reque
st_lock
);
spin_unlock_irq
(
info
->
host
->
ho
st_lock
);
scsi_sleep
(
25
*
HZ
/
100
);
spin_lock_irq
(
&
io_reque
st_lock
);
spin_lock_irq
(
info
->
host
->
ho
st_lock
);
/*
* Release the SCSI reset.
...
...
@@ -2628,9 +2628,9 @@ int fas216_init(struct Scsi_Host *instance)
/*
* scsi standard says wait 250ms
*/
spin_unlock_irq
(
&
io_reque
st_lock
);
spin_unlock_irq
(
info
->
host
->
ho
st_lock
);
scsi_sleep
(
25
*
HZ
/
100
);
spin_lock_irq
(
&
io_reque
st_lock
);
spin_lock_irq
(
info
->
host
->
ho
st_lock
);
outb
(
info
->
scsi
.
cfg
[
0
],
REG_CNTL1
(
info
));
inb
(
REG_INST
(
info
));
...
...
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