diff options
author | Hannes Reinecke <hare@suse.com> | 2017-08-25 07:57:11 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 17:21:11 -0400 |
commit | 4a56c1c166b6764f4fb389fbaca6acc75ea215d7 (patch) | |
tree | 97f2ef0bfa370b27c605e50b2790bc46479bfd45 | |
parent | 12e5fc665a2d8380c1551291a0d7684fc181b02d (diff) |
scsi: qlogicfas: move bus_reset to host_reset
The bus reset handler is really a host 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>
-rw-r--r-- | drivers/scsi/pcmcia/qlogic_stub.c | 4 | ||||
-rw-r--r-- | drivers/scsi/qlogicfas.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qlogicfas408.c | 6 | ||||
-rw-r--r-- | drivers/scsi/qlogicfas408.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/pcmcia/qlogic_stub.c b/drivers/scsi/pcmcia/qlogic_stub.c index c670dc704c74..0556054764dc 100644 --- a/drivers/scsi/pcmcia/qlogic_stub.c +++ b/drivers/scsi/pcmcia/qlogic_stub.c | |||
@@ -67,7 +67,7 @@ static struct scsi_host_template qlogicfas_driver_template = { | |||
67 | .info = qlogicfas408_info, | 67 | .info = qlogicfas408_info, |
68 | .queuecommand = qlogicfas408_queuecommand, | 68 | .queuecommand = qlogicfas408_queuecommand, |
69 | .eh_abort_handler = qlogicfas408_abort, | 69 | .eh_abort_handler = qlogicfas408_abort, |
70 | .eh_bus_reset_handler = qlogicfas408_bus_reset, | 70 | .eh_host_reset_handler = qlogicfas408_host_reset, |
71 | .bios_param = qlogicfas408_biosparam, | 71 | .bios_param = qlogicfas408_biosparam, |
72 | .can_queue = 1, | 72 | .can_queue = 1, |
73 | .this_id = -1, | 73 | .this_id = -1, |
@@ -264,7 +264,7 @@ static int qlogic_resume(struct pcmcia_device *link) | |||
264 | outb(0x04, link->resource[0]->start + 0xd); | 264 | outb(0x04, link->resource[0]->start + 0xd); |
265 | } | 265 | } |
266 | /* Ugggglllyyyy!!! */ | 266 | /* Ugggglllyyyy!!! */ |
267 | qlogicfas408_bus_reset(NULL); | 267 | qlogicfas408_host_reset(NULL); |
268 | 268 | ||
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
diff --git a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c index 840823b99e51..95431d605c24 100644 --- a/drivers/scsi/qlogicfas.c +++ b/drivers/scsi/qlogicfas.c | |||
@@ -188,7 +188,7 @@ static struct scsi_host_template qlogicfas_driver_template = { | |||
188 | .info = qlogicfas408_info, | 188 | .info = qlogicfas408_info, |
189 | .queuecommand = qlogicfas408_queuecommand, | 189 | .queuecommand = qlogicfas408_queuecommand, |
190 | .eh_abort_handler = qlogicfas408_abort, | 190 | .eh_abort_handler = qlogicfas408_abort, |
191 | .eh_bus_reset_handler = qlogicfas408_bus_reset, | 191 | .eh_host_reset_handler = qlogicfas408_host_reset, |
192 | .bios_param = qlogicfas408_biosparam, | 192 | .bios_param = qlogicfas408_biosparam, |
193 | .can_queue = 1, | 193 | .can_queue = 1, |
194 | .this_id = -1, | 194 | .this_id = -1, |
diff --git a/drivers/scsi/qlogicfas408.c b/drivers/scsi/qlogicfas408.c index c3a9151ca823..8b471a925b43 100644 --- a/drivers/scsi/qlogicfas408.c +++ b/drivers/scsi/qlogicfas408.c | |||
@@ -496,13 +496,13 @@ int qlogicfas408_abort(struct scsi_cmnd *cmd) | |||
496 | return SUCCESS; | 496 | return SUCCESS; |
497 | } | 497 | } |
498 | 498 | ||
499 | /* | 499 | /* |
500 | * Reset SCSI bus | 500 | * Reset SCSI bus |
501 | * FIXME: This function is invoked with cmd = NULL directly by | 501 | * FIXME: This function is invoked with cmd = NULL directly by |
502 | * the PCMCIA qlogic_stub code. This wants fixing | 502 | * the PCMCIA qlogic_stub code. This wants fixing |
503 | */ | 503 | */ |
504 | 504 | ||
505 | int qlogicfas408_bus_reset(struct scsi_cmnd *cmd) | 505 | int qlogicfas408_host_reset(struct scsi_cmnd *cmd) |
506 | { | 506 | { |
507 | struct qlogicfas408_priv *priv = get_priv_by_cmd(cmd); | 507 | struct qlogicfas408_priv *priv = get_priv_by_cmd(cmd); |
508 | unsigned long flags; | 508 | unsigned long flags; |
@@ -607,7 +607,7 @@ module_exit(qlogicfas408_exit); | |||
607 | EXPORT_SYMBOL(qlogicfas408_info); | 607 | EXPORT_SYMBOL(qlogicfas408_info); |
608 | EXPORT_SYMBOL(qlogicfas408_queuecommand); | 608 | EXPORT_SYMBOL(qlogicfas408_queuecommand); |
609 | EXPORT_SYMBOL(qlogicfas408_abort); | 609 | EXPORT_SYMBOL(qlogicfas408_abort); |
610 | EXPORT_SYMBOL(qlogicfas408_bus_reset); | 610 | EXPORT_SYMBOL(qlogicfas408_host_reset); |
611 | EXPORT_SYMBOL(qlogicfas408_biosparam); | 611 | EXPORT_SYMBOL(qlogicfas408_biosparam); |
612 | EXPORT_SYMBOL(qlogicfas408_ihandl); | 612 | EXPORT_SYMBOL(qlogicfas408_ihandl); |
613 | EXPORT_SYMBOL(qlogicfas408_get_chip_type); | 613 | EXPORT_SYMBOL(qlogicfas408_get_chip_type); |
diff --git a/drivers/scsi/qlogicfas408.h b/drivers/scsi/qlogicfas408.h index 2f6c0a166200..f6b1216af79f 100644 --- a/drivers/scsi/qlogicfas408.h +++ b/drivers/scsi/qlogicfas408.h | |||
@@ -108,7 +108,7 @@ int qlogicfas408_biosparam(struct scsi_device * disk, | |||
108 | struct block_device *dev, | 108 | struct block_device *dev, |
109 | sector_t capacity, int ip[]); | 109 | sector_t capacity, int ip[]); |
110 | int qlogicfas408_abort(struct scsi_cmnd * cmd); | 110 | int qlogicfas408_abort(struct scsi_cmnd * cmd); |
111 | int qlogicfas408_bus_reset(struct scsi_cmnd * cmd); | 111 | extern int qlogicfas408_host_reset(struct scsi_cmnd *cmd); |
112 | const char *qlogicfas408_info(struct Scsi_Host *host); | 112 | const char *qlogicfas408_info(struct Scsi_Host *host); |
113 | int qlogicfas408_get_chip_type(int qbase, int int_type); | 113 | int qlogicfas408_get_chip_type(int qbase, int int_type); |
114 | void qlogicfas408_setup(int qbase, int id, int int_type); | 114 | void qlogicfas408_setup(int qbase, int id, int int_type); |