Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53296788 authored by Saurav Kashyap's avatar Saurav Kashyap Committed by James Bottomley
Browse files

[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: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarMadhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: default avatarJames Bottomley <jbottomley@parallels.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 43ebf16d
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -5435,6 +5435,13 @@ qla82xx_restart_isp(scsi_qla_host_t *vha)
		ha->isp_abort_cnt = 0;
		ha->isp_abort_cnt = 0;
		clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags);
		clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags);


		/* Update the firmware version */
		qla2x00_get_fw_version(vha, &ha->fw_major_version,
		    &ha->fw_minor_version, &ha->fw_subminor_version,
		    &ha->fw_attributes, &ha->fw_memory_size,
		    ha->mpi_version, &ha->mpi_capabilities,
		    ha->phy_version);

		if (ha->fce) {
		if (ha->fce) {
			ha->flags.fce_enabled = 1;
			ha->flags.fce_enabled = 1;
			memset(ha->fce, 0,
			memset(ha->fce, 0,