lpfc: Add support for reporting option_rom_version on newer adapters
Subsystems (2)
PATCH 8/21 lpfc: Add support for reporting option_rom_version on newer adapters
Add support for reporting option_rom_version on newer adapters
Signed-off-by Dick Kennedy <[email protected]>
Signed-off-by James Smart <[email protected]>
--- drivers/scsi/lpfc/lpfc_attr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_attr.c +6 -1
@@ -406,8 +406,13 @@ lpfc_option_rom_version_show(struct device *dev, struct device_attribute *attr,struct Scsi_Host *shost =class_to_shost (dev);struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;struct lpfc_hba *phba = vport->phba; +char fwrev[FW_REV_STR_SIZE ]; + +if (phba->sli_rev <LPFC_SLI_REV4 ) +return snprintf (buf,PAGE_SIZE ,"%s\n" , phba->OptionROMVersion); -return snprintf (buf,PAGE_SIZE ,"%s\n" , phba->OptionROMVersion); +lpfc_decode_firmware_rev (phba, fwrev,1 ); +return snprintf (buf,PAGE_SIZE ,"%s\n" , fwrev); }/**
Signature · 1 line
1.7.11.7
Quoted 5 lines · James Smart
Add support for reporting
option_rom_versionon newer adaptersSigned-off-by Dick Kennedy <[email protected]>Signed-off-by James Smart <[email protected]>---
Reviewed-by Hannes Reinecke <[email protected]>
Cheers,
Hannes
Signature · 8 lines
Dr. Hannes Reinecke zSeries & Storage [email protected] +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html