diff options
author | Saurav Kashyap <saurav.kashyap@qlogic.com> | 2013-02-08 07:57:49 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-22 13:34:59 +0100 |
commit | 619d5a0ded06f6d46092205a68a92f7c3a01dd44 (patch) | |
tree | fe6486537dcd9cd72715f1aab52813e2a3acd3a9 /drivers/scsi/qla2xxx/qla_bsg.c | |
parent | [SCSI] qla2xxx: Do link initialization on get loop id failure. (diff) | |
download | linux-619d5a0ded06f6d46092205a68a92f7c3a01dd44.tar.xz linux-619d5a0ded06f6d46092205a68a92f7c3a01dd44.zip |
[SCSI] qla2xxx: Do MPI reset only for ISP81xx.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 5b49766e0ae7..525c339436ab 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -796,10 +796,12 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) qla2xxx_wake_dpc(vha); qla2x00_wait_for_chip_reset(vha); /* Also reset the MPI */ - if (qla81xx_restart_mpi_firmware(vha) != - QLA_SUCCESS) { - ql_log(ql_log_warn, vha, 0x702a, - "MPI reset failed.\n"); + if (IS_QLA81XX(ha)) { + if (qla81xx_restart_mpi_firmware(vha) != + QLA_SUCCESS) { + ql_log(ql_log_warn, vha, 0x702a, + "MPI reset failed.\n"); + } } rval = -EIO; |