[Skiboot] [PATCH] hdata/vpd: Add vendor property
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Thu Jan 18 18:01:38 AEDT 2018
ibm,vpd blob contains VN field. Use that to populate vendor property
for various FRU's.
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
hdata/vpd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hdata/vpd.c b/hdata/vpd.c
index 556257984..abf6d39a5 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -304,6 +304,11 @@ static void vpd_vini_parse(struct dt_node *node,
if (kw)
dt_add_property_nstr(node, "part-number", kw, sz);
+ /* Vendor Name */
+ kw = vpd_find(fruvpd, fruvpd_sz, "VINI", "VN", &sz);
+ if (kw)
+ dt_add_property_nstr(node, "vendor", kw, sz);
+
/* CCIN Extension */
kw = vpd_find(fruvpd, fruvpd_sz, "VINI", "CE", &sz);
if (kw)
--
2.14.3
More information about the Skiboot
mailing list