diff options
author | James Smart <james.smart@emulex.com> | 2015-04-07 15:07:16 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 10:47:39 -0400 |
commit | a0683bf67a0502c6ed8b75a1f1a65762c7790635 (patch) | |
tree | 8bed5033665be55eb96237d54995e0e3d870017c /drivers/scsi/lpfc/lpfc_attr.c | |
parent | 2c9c5a001002cf95d36636c2debd897a17781b06 (diff) |
lpfc: Add support for reporting option_rom_version on newer adapters
Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 2f9b96826ac0..374aa03d91e8 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -406,8 +406,13 @@ lpfc_option_rom_version_show(struct device *dev, struct device_attribute *attr, | |||
406 | struct Scsi_Host *shost = class_to_shost(dev); | 406 | struct Scsi_Host *shost = class_to_shost(dev); |
407 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; | 407 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; |
408 | struct lpfc_hba *phba = vport->phba; | 408 | struct lpfc_hba *phba = vport->phba; |
409 | char fwrev[FW_REV_STR_SIZE]; | ||
410 | |||
411 | if (phba->sli_rev < LPFC_SLI_REV4) | ||
412 | return snprintf(buf, PAGE_SIZE, "%s\n", phba->OptionROMVersion); | ||
409 | 413 | ||
410 | return snprintf(buf, PAGE_SIZE, "%s\n", phba->OptionROMVersion); | 414 | lpfc_decode_firmware_rev(phba, fwrev, 1); |
415 | return snprintf(buf, PAGE_SIZE, "%s\n", fwrev); | ||
411 | } | 416 | } |
412 | 417 | ||
413 | /** | 418 | /** |