mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
scsi: qla2xxx: Fix optrom version displayed in FDMI
commit 348744f27a
upstream.
Bios version was popluated for FDMI response. Systems with EFI would show
optrom version as 0. EFI version is populated here and BIOS version is
already displayed under FDMI_HBA_BOOT_BIOS_NAME.
Cc: stable@vger.kernel.org
Signed-off-by: Shreyas Deodhar <sdeodhar@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240710171057.35066-9-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7e52c62ff0
commit
94f003925c
@ -1709,7 +1709,7 @@ qla2x00_hba_attributes(scsi_qla_host_t *vha, void *entries,
|
||||
eiter->type = cpu_to_be16(FDMI_HBA_OPTION_ROM_VERSION);
|
||||
alen = scnprintf(
|
||||
eiter->a.orom_version, sizeof(eiter->a.orom_version),
|
||||
"%d.%02d", ha->bios_revision[1], ha->bios_revision[0]);
|
||||
"%d.%02d", ha->efi_revision[1], ha->efi_revision[0]);
|
||||
alen += FDMI_ATTR_ALIGNMENT(alen);
|
||||
alen += FDMI_ATTR_TYPELEN(eiter);
|
||||
eiter->len = cpu_to_be16(alen);
|
||||
|
Loading…
Reference in New Issue
Block a user