Skip to content

Commit

Permalink
scsi: fdomain: move bus reset to host reset
Browse files Browse the repository at this point in the history
The bus reset function really is a host reset, so move it to
eh_host_reset_handler().

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>
  • Loading branch information
Hannes Reinecke authored and Martin K. Petersen committed Aug 25, 2017
1 parent aceb294 commit 63cd2f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/fdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ struct Scsi_Host *__fdomain_16x0_detect(struct scsi_host_template *tpnt )
}
}

fdomain_16x0_bus_reset(NULL);
fdomain_16x0_host_reset(NULL);

if (fdomain_test_loopback()) {
printk(KERN_ERR "scsi: <fdomain> Detection failed (loopback test failed at port base 0x%x)\n", port_base);
Expand Down Expand Up @@ -1568,7 +1568,7 @@ static int fdomain_16x0_abort(struct scsi_cmnd *SCpnt)
return SUCCESS;
}

int fdomain_16x0_bus_reset(struct scsi_cmnd *SCpnt)
int fdomain_16x0_host_reset(struct scsi_cmnd *SCpnt)
{
unsigned long flags;

Expand Down Expand Up @@ -1758,7 +1758,7 @@ struct scsi_host_template fdomain_driver_template = {
.info = fdomain_16x0_info,
.queuecommand = fdomain_16x0_queue,
.eh_abort_handler = fdomain_16x0_abort,
.eh_bus_reset_handler = fdomain_16x0_bus_reset,
.eh_host_reset_handler = fdomain_16x0_host_reset,
.bios_param = fdomain_16x0_biosparam,
.release = fdomain_16x0_release,
.can_queue = 1,
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/fdomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
extern struct scsi_host_template fdomain_driver_template;
extern int fdomain_setup(char *str);
extern struct Scsi_Host *__fdomain_16x0_detect(struct scsi_host_template *tpnt );
extern int fdomain_16x0_bus_reset(struct scsi_cmnd *SCpnt);
extern int fdomain_16x0_host_reset(struct scsi_cmnd *SCpnt);
2 changes: 1 addition & 1 deletion drivers/scsi/pcmcia/fdomain_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static void fdomain_release(struct pcmcia_device *link)

static int fdomain_resume(struct pcmcia_device *link)
{
fdomain_16x0_bus_reset(NULL);
fdomain_16x0_host_reset(NULL);

return 0;
}
Expand Down

0 comments on commit 63cd2f7

Please sign in to comment.