scsi: lpfc: Add first and second level hardware revisions to sysfs reporting
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:57:07 +0000 (16:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:12 +0000 (22:41 -0400)
To aid better hardware detection when there are issues, report the first
and second level hardware revisions from the READ_REV command.  Add the
elements to the existing hardware id string.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c

index 798ec5f..0a8caa1 100644 (file)
@@ -841,7 +841,8 @@ lpfc_hdw_show(struct device *dev, struct device_attribute *attr, char *buf)
        lpfc_vpd_t *vp = &phba->vpd;
 
        lpfc_jedec_to_ascii(vp->rev.biuRev, hdw);
-       return scnprintf(buf, PAGE_SIZE, "%s\n", hdw);
+       return scnprintf(buf, PAGE_SIZE, "%s %08x %08x\n", hdw,
+                        vp->rev.smRev, vp->rev.smFwRev);
 }
 
 /**