Commit 619d5a0d authored by Saurav Kashyap's avatar Saurav Kashyap Committed by James Bottomley

[SCSI] qla2xxx: Do MPI reset only for ISP81xx.

Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 61e1b269
...@@ -796,10 +796,12 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) ...@@ -796,10 +796,12 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job)
qla2xxx_wake_dpc(vha); qla2xxx_wake_dpc(vha);
qla2x00_wait_for_chip_reset(vha); qla2x00_wait_for_chip_reset(vha);
/* Also reset the MPI */ /* Also reset the MPI */
if (qla81xx_restart_mpi_firmware(vha) != if (IS_QLA81XX(ha)) {
QLA_SUCCESS) { if (qla81xx_restart_mpi_firmware(vha) !=
ql_log(ql_log_warn, vha, 0x702a, QLA_SUCCESS) {
"MPI reset failed.\n"); ql_log(ql_log_warn, vha, 0x702a,
"MPI reset failed.\n");
}
} }
rval = -EIO; rval = -EIO;
......
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