diff options
author | Hannes Reinecke <hare@suse.de> | 2017-08-25 07:57:06 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 17:21:10 -0400 |
commit | ec05e23896910380ccb6d64f1b95a2310fa0c868 (patch) | |
tree | 27de19a55ce0eb8b2e7895bc6868d5d1a9acae2a /drivers/scsi/wd33c93.c | |
parent | 63cd2f7f9031a91c11583ca16c84280c5debeeae (diff) |
scsi: drop bus reset for wd33c93-compatible boards
The bus reset function is just a wrapper calling host reset under the
host lock. So move taking of the host lock into the host reset function
and drop bus reset.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/wd33c93.c')
-rw-r--r-- | drivers/scsi/wd33c93.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c index 9e09da412b92..74be04f2357c 100644 --- a/drivers/scsi/wd33c93.c +++ b/drivers/scsi/wd33c93.c | |||
@@ -1578,6 +1578,7 @@ wd33c93_host_reset(struct scsi_cmnd * SCpnt) | |||
1578 | int i; | 1578 | int i; |
1579 | 1579 | ||
1580 | instance = SCpnt->device->host; | 1580 | instance = SCpnt->device->host; |
1581 | spin_lock_irq(instance->host_lock); | ||
1581 | hostdata = (struct WD33C93_hostdata *) instance->hostdata; | 1582 | hostdata = (struct WD33C93_hostdata *) instance->hostdata; |
1582 | 1583 | ||
1583 | printk("scsi%d: reset. ", instance->host_no); | 1584 | printk("scsi%d: reset. ", instance->host_no); |
@@ -1603,6 +1604,7 @@ wd33c93_host_reset(struct scsi_cmnd * SCpnt) | |||
1603 | reset_wd33c93(instance); | 1604 | reset_wd33c93(instance); |
1604 | SCpnt->result = DID_RESET << 16; | 1605 | SCpnt->result = DID_RESET << 16; |
1605 | enable_irq(instance->irq); | 1606 | enable_irq(instance->irq); |
1607 | spin_unlock_irq(instance->host_lock); | ||
1606 | return SUCCESS; | 1608 | return SUCCESS; |
1607 | } | 1609 | } |
1608 | 1610 | ||