diff options
author | Saurav Kashyap <saurav.kashyap@qlogic.com> | 2011-05-10 14:30:06 -0400 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-17 03:31:04 -0400 |
commit | 53296788f425def50d09c7e0d773bdeaae57c623 (patch) | |
tree | f5c8be27671d081b7bdc9452b583a3720458103c /drivers | |
parent | 43ebf16d762b082663976b679b813e1b546548d1 (diff) |
[SCSI] qla2xxx: Update firmware version after flash update for ISP82xx.
The driver keeps a copy of the fw_version within the ha structure.
For ISP82xx, this local copy doesn't get updated, and as a result,
the old firmware version ends up getting displayed. This patch fixes
this issue.
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 24d2d195d3c6..cb6969320b47 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -5435,6 +5435,13 @@ qla82xx_restart_isp(scsi_qla_host_t *vha) | |||
5435 | ha->isp_abort_cnt = 0; | 5435 | ha->isp_abort_cnt = 0; |
5436 | clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); | 5436 | clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); |
5437 | 5437 | ||
5438 | /* Update the firmware version */ | ||
5439 | qla2x00_get_fw_version(vha, &ha->fw_major_version, | ||
5440 | &ha->fw_minor_version, &ha->fw_subminor_version, | ||
5441 | &ha->fw_attributes, &ha->fw_memory_size, | ||
5442 | ha->mpi_version, &ha->mpi_capabilities, | ||
5443 | ha->phy_version); | ||
5444 | |||
5438 | if (ha->fce) { | 5445 | if (ha->fce) { |
5439 | ha->flags.fce_enabled = 1; | 5446 | ha->flags.fce_enabled = 1; |
5440 | memset(ha->fce, 0, | 5447 | memset(ha->fce, 0, |