Skip to content

Commit

Permalink
hdata/vpd: Add vendor property
Browse files Browse the repository at this point in the history
ibm,vpd blob contains VN field. Use that to populate vendor property
for various FRU's.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed Jan 31, 2018
1 parent a05e341 commit 4a12d6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hdata/vpd.c
Expand Up @@ -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)
Expand Down

0 comments on commit 4a12d6d

Please sign in to comment.