diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2007-05-07 10:43:00 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-08 12:21:07 -0400 |
commit | 75edf81d337ea84a291f0fdae2777cfd07045eca (patch) | |
tree | b9b27e0792f8a62e10098719ea2404d88a6885cf /drivers/scsi/qla2xxx/qla_init.c | |
parent | a7b6184225d747e5ae0bee30a388e6ebb70d5b8e (diff) |
[SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 3e296ab845b6..6ad15880c468 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -3931,6 +3931,8 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *ha) | |||
3931 | 3931 | ||
3932 | if (!IS_QLA24XX(ha) && !IS_QLA54XX(ha)) | 3932 | if (!IS_QLA24XX(ha) && !IS_QLA54XX(ha)) |
3933 | return; | 3933 | return; |
3934 | if (!ha->fw_major_version) | ||
3935 | return; | ||
3934 | 3936 | ||
3935 | ret = qla2x00_stop_firmware(ha); | 3937 | ret = qla2x00_stop_firmware(ha); |
3936 | for (retries = 5; ret != QLA_SUCCESS && retries ; retries--) { | 3938 | for (retries = 5; ret != QLA_SUCCESS && retries ; retries--) { |