diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-05-28 07:57:14 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-17 13:05:18 -0400 |
commit | df0ae2497ddefd72a87f3a3b34ff32455d7d4ae0 (patch) | |
tree | 552e02a44a21bd38db91729c85219542c2930ae2 /drivers/scsi/sym53c416.c | |
parent | 68b3aa7c9805aee9005a8ca53c5e99177961fbb9 (diff) |
[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sym53c416.c')
-rw-r--r-- | drivers/scsi/sym53c416.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/sym53c416.c b/drivers/scsi/sym53c416.c index ca9a04cf4d3f..ef19adc67eff 100644 --- a/drivers/scsi/sym53c416.c +++ b/drivers/scsi/sym53c416.c | |||
@@ -790,6 +790,9 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) | |||
790 | int base; | 790 | int base; |
791 | int scsi_id = -1; | 791 | int scsi_id = -1; |
792 | int i; | 792 | int i; |
793 | unsigned long flags; | ||
794 | |||
795 | spin_lock_irqsave(&sym53c416_lock, flags); | ||
793 | 796 | ||
794 | /* printk("sym53c416_reset\n"); */ | 797 | /* printk("sym53c416_reset\n"); */ |
795 | base = SCpnt->device->host->io_port; | 798 | base = SCpnt->device->host->io_port; |
@@ -801,6 +804,8 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) | |||
801 | outb(NOOP | PIO_MODE, base + COMMAND_REG); | 804 | outb(NOOP | PIO_MODE, base + COMMAND_REG); |
802 | outb(RESET_SCSI_BUS, base + COMMAND_REG); | 805 | outb(RESET_SCSI_BUS, base + COMMAND_REG); |
803 | sym53c416_init(base, scsi_id); | 806 | sym53c416_init(base, scsi_id); |
807 | |||
808 | spin_unlock_irqrestore(&sym53c416_lock, flags); | ||
804 | return SUCCESS; | 809 | return SUCCESS; |
805 | } | 810 | } |
806 | 811 | ||