summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/seagate.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
commitc7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch)
tree3682407a599b8f9f03fc096298134cafba1c9b2f /drivers/scsi/seagate.c
parent1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff)
o Merge with Linux 2.1.116.
o New Newport console code. o New G364 console code.
Diffstat (limited to 'drivers/scsi/seagate.c')
-rw-r--r--drivers/scsi/seagate.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/scsi/seagate.c b/drivers/scsi/seagate.c
index 2cd06a2d9..130e6a233 100644
--- a/drivers/scsi/seagate.c
+++ b/drivers/scsi/seagate.c
@@ -649,8 +649,6 @@ static void seagate_reconnect_intr (int irq, void *dev_id,
int temp;
Scsi_Cmnd *SCtmp;
-/* enable all other interrupts. */
- sti ();
#if (DEBUG & PHASE_RESELECT)
printk ("scsi%d : seagate_reconnect_intr() called\n", hostno);
#endif
@@ -1015,11 +1013,14 @@ static int internal_command (unsigned char target, unsigned char lun,
*/
#if defined(ARBITRATE)
+ { unsigned long flags;
+ save_flags (flags);
cli ();
WRITE_CONTROL (0);
WRITE_DATA ((controller_type == SEAGATE) ? 0x80 : 0x40);
WRITE_CONTROL (CMD_START_ARB);
- sti ();
+ restore_flags (flags);
+ }
while (!((status_read = STATUS) & (STAT_ARB_CMPL | STAT_SEL)) &&
(jiffies < clock) && !st0x_aborted) ;
@@ -1054,19 +1055,25 @@ static int internal_command (unsigned char target, unsigned char lun,
*/
#ifdef OLDCNTDATASCEME
#ifdef SWAPCNTDATA
+ { unsigned long flags;
+ save_flags(flags);
cli();
WRITE_CONTROL (BASE_CMD | CMD_DRVR_ENABLE | CMD_SEL |
(reselect ? CMD_ATTN : 0));
WRITE_DATA ((unsigned char) ((1 << target) |
(controller_type == SEAGATE ? 0x80 : 0x40)));
- sti();
+ restore_flags(flags);
+ }
#else
+ { unsigned long flags;
+ save_flags(flags);
cli ();
WRITE_DATA ((unsigned char) ((1 << target) |
(controller_type == SEAGATE ? 0x80 : 0x40)));
WRITE_CONTROL (BASE_CMD | CMD_DRVR_ENABLE | CMD_SEL |
(reselect ? CMD_ATTN : 0));
- sti ();
+ restore_flags (flags);
+ }
#endif
#else
tmp_data = (unsigned char) ((1 << target) | (controller_type == SEAGATE