diff options
author | James Smart <jsmart2021@gmail.com> | 2019-08-14 16:57:07 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-19 22:41:12 -0400 |
commit | ec76242f3be73e5cbb950a7ac99d4fba7e226e2e (patch) | |
tree | bb619121e88983ce777beb6812e5d8f2183dd2e3 | |
parent | 32350664497279f4ddd96164caafc8a1b573ca2a (diff) | |
download | linux-ec76242f3be73e5cbb950a7ac99d4fba7e226e2e.tar.gz linux-ec76242f3be73e5cbb950a7ac99d4fba7e226e2e.tar.bz2 linux-ec76242f3be73e5cbb950a7ac99d4fba7e226e2e.zip |
scsi: lpfc: Add first and second level hardware revisions to sysfs reporting
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>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 798ec5f3a2c7..0a8caa12a30d 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -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); } /** |