diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-04-02 16:37:27 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-04-05 12:30:44 +1000 |
commit | 810aaf1173a056414295eab22cf32ba6833951b0 (patch) | |
tree | 82cea405eb75a7c445ca33b41ad37b3031efc6a8 /hdata/vpd.c | |
parent | 01b01804121ed34f499afe011b8461f29f171dba (diff) | |
download | skiboot-810aaf1173a056414295eab22cf32ba6833951b0.zip skiboot-810aaf1173a056414295eab22cf32ba6833951b0.tar.gz skiboot-810aaf1173a056414295eab22cf32ba6833951b0.tar.bz2 |
hdat: Read description from ibm, vpd binary blob
In P8, for few FRU's we hardcoded description table (I don't call
the reason behind this). Hence on newers system, for most devices
description propetry under /vpd contains "Unknown".
Hence lets read description from vpd blob.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/vpd.c')
-rw-r--r-- | hdata/vpd.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/hdata/vpd.c b/hdata/vpd.c index 1533f3f..6cb9bec 100644 --- a/hdata/vpd.c +++ b/hdata/vpd.c @@ -317,10 +317,16 @@ static void vpd_vini_parse(struct dt_node *node, dt_add_property_string(node, "description", cinfo->description); } else { - dt_add_property_string(node, "description", "Unknown"); - prlog(PR_WARNING, - "VPD: CCIN desc not available for: %s\n", - (char *)kw); + kw = vpd_find(fruvpd, fruvpd_sz, "VINI", "DR", &sz); + if (kw) { + dt_add_property_nstr(node, + "description", kw, sz); + } else { + dt_add_property_string(node, "description", "Unknown"); + prlog(PR_WARNING, + "VPD: CCIN desc not available for: %s\n", + (char *)kw); + } } } |