Commit af167bc4 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Martin K. Petersen

scsi: qlogicpti: move bus reset to host reset

The bus reset function really is a host reset, so move it to
eh_host_reset_handler().
Signed-off-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 13beb929
...@@ -1250,10 +1250,9 @@ static int qlogicpti_abort(struct scsi_cmnd *Cmnd) ...@@ -1250,10 +1250,9 @@ static int qlogicpti_abort(struct scsi_cmnd *Cmnd)
return return_status; return return_status;
} }
static int qlogicpti_reset(struct scsi_cmnd *Cmnd) static int qlogicpti_reset(struct Scsi_Host *host)
{ {
u_short param[6]; u_short param[6];
struct Scsi_Host *host = Cmnd->device->host;
struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;
int return_status = SUCCESS; int return_status = SUCCESS;
...@@ -1283,7 +1282,7 @@ static struct scsi_host_template qpti_template = { ...@@ -1283,7 +1282,7 @@ static struct scsi_host_template qpti_template = {
.queuecommand = qlogicpti_queuecommand, .queuecommand = qlogicpti_queuecommand,
.slave_configure = qlogicpti_slave_configure, .slave_configure = qlogicpti_slave_configure,
.eh_abort_handler = qlogicpti_abort, .eh_abort_handler = qlogicpti_abort,
.eh_bus_reset_handler = qlogicpti_reset, .eh_host_reset_handler = qlogicpti_reset,
.can_queue = QLOGICPTI_REQ_QUEUE_LEN, .can_queue = QLOGICPTI_REQ_QUEUE_LEN,
.this_id = 7, .this_id = 7,
.sg_tablesize = QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN), .sg_tablesize = QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment