diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2009-04-07 01:33:48 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-20 18:21:10 -0400 |
commit | b469a7cbe9bf68939c90f4ac6bc2bb99e47d7229 (patch) | |
tree | c3cbabe580d0a98ace262611e3152a105357e838 /drivers/scsi/qla2xxx/qla_init.c | |
parent | a13d8ac057705c479b8bf15e5303f18f899502f9 (diff) |
[SCSI] qla2xxx: Don't try to 'stop' firmware if already in ROM code.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index a4a6a146fccd..138ae88e9e4d 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -4153,7 +4153,7 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *vha) | |||
4153 | 4153 | ||
4154 | ret = qla2x00_stop_firmware(vha); | 4154 | ret = qla2x00_stop_firmware(vha); |
4155 | for (retries = 5; ret != QLA_SUCCESS && ret != QLA_FUNCTION_TIMEOUT && | 4155 | for (retries = 5; ret != QLA_SUCCESS && ret != QLA_FUNCTION_TIMEOUT && |
4156 | retries ; retries--) { | 4156 | ret != QLA_INVALID_COMMAND && retries ; retries--) { |
4157 | ha->isp_ops->reset_chip(vha); | 4157 | ha->isp_ops->reset_chip(vha); |
4158 | if (ha->isp_ops->chip_diag(vha) != QLA_SUCCESS) | 4158 | if (ha->isp_ops->chip_diag(vha) != QLA_SUCCESS) |
4159 | continue; | 4159 | continue; |