27 lines
958 B
Diff
27 lines
958 B
Diff
|
commit cc99870797f732129b4d2703a37461dac7c27098
|
||
|
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
||
|
Date: Fri Jan 22 18:41:44 2021 +0530
|
||
|
|
||
|
nvme: Populate NVMe firmware version
|
||
|
|
||
|
Looks like NVMe firmware version is added as `firmware_rev`
|
||
|
property in sysfs. Also its not available in `vpd` blob.
|
||
|
Hence add explicit logic to parse sysfs property.
|
||
|
|
||
|
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
||
|
|
||
|
diff --git a/src/internal/sys_interface/sysfstreecollector.cpp b/src/internal/sys_interface/sysfstreecollector.cpp
|
||
|
index 4404013..70fcc1b 100644
|
||
|
--- a/src/internal/sys_interface/sysfstreecollector.cpp
|
||
|
+++ b/src/internal/sys_interface/sysfstreecollector.cpp
|
||
|
@@ -1794,6 +1794,9 @@ ERROR:
|
||
|
|
||
|
fillMe->mFirmwareLevel.setValue( getAttrValue( classNode,
|
||
|
"fwrev" ), 30, __FILE__, __LINE__ );
|
||
|
+
|
||
|
+ fillMe->mFirmwareVersion.setValue( getAttrValue( classNode,
|
||
|
+ "firmware_rev" ), 30, __FILE__, __LINE__ );
|
||
|
}
|
||
|
}
|
||
|
|