From patchwork Fri Oct 6 17:25:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John W Walthour X-Patchwork-Id: 822615 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y7xNQ0DQKz9t30 for ; Sat, 7 Oct 2017 04:25:10 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbdJFRZJ convert rfc822-to-8bit (ORCPT ); Fri, 6 Oct 2017 13:25:09 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34744 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751522AbdJFRZI (ORCPT ); Fri, 6 Oct 2017 13:25:08 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v96HNtgI056797 for ; Fri, 6 Oct 2017 13:25:07 -0400 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.91]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dedptsm6r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 06 Oct 2017 13:25:07 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 6 Oct 2017 17:25:06 -0000 Received: from us1a3-smtp01.a3.dal06.isc4sb.com (10.106.154.95) by smtp.notes.na.collabserv.com (10.106.227.143) with smtp.notes.na.collabserv.com ESMTP; Fri, 6 Oct 2017 17:25:03 -0000 Received: from us1a3-mail53.a3.dal06.isc4sb.com ([10.146.77.91]) by us1a3-smtp01.a3.dal06.isc4sb.com with ESMTP id 2017100617250337-798421 ; Fri, 6 Oct 2017 17:25:03 +0000 To: linux-pci@vger.kernel.org Cc: mj@ucw.cz Subject: [PATCH] pciutils: change vpd keyword MN to text From: "John W Walthour" Date: Fri, 6 Oct 2017 12:25:03 -0500 MIME-Version: 1.0 X-KeepSent: 11986481:9DE311D9-002581B1:005E606E; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1EXT SHF766 December 14, 2016 X-LLNOutbound: False X-Disclaimed: 4275 X-TNEFEvaluated: 1 x-cbid: 17100617-9951-0000-0000-00000489CCB5 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.415652; ST=0; TS=0; UL=0; ISC=; MB=0.074559 X-IBM-SpamModules-Versions: BY=3.00007851; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000235; SDB=6.00927349; UDB=6.00466619; IPR=6.00707608; BA=6.00005623; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017422; XFM=3.00000015; UTC=2017-10-06 17:25:05 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2017-10-06 14:49:18 - 6.00007421 x-cbparentid: 17100617-9952-0000-0000-00001E79CCF8 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-10-06_04:, , signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The PCI spec defines all keyword data fields as ASCII unless otherwise noted. The MN keyword is not otherwise noted. To make this field human readable in lspci verbose outputs, this patch changes the MN keyword definition from F_BINARY to F_TEXT. Signed-off-by: John Walthour --- ls-vpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 (Apple Git-81) diff --git a/ls-vpd.c b/ls-vpd.c index 35c2bfa..b79abfc 100644 --- a/ls-vpd.c +++ b/ls-vpd.c @@ -33,7 +33,7 @@ static const struct vpd_item { } vpd_items[] = { { 'C','P', F_BINARY, "Extended capability" }, { 'E','C', F_TEXT, "Engineering changes" }, - { 'M','N', F_BINARY, "Manufacture ID" }, + { 'M','N', F_TEXT, "Manufacture ID" }, { 'P','N', F_TEXT, "Part number" }, { 'R','V', F_RESVD, "Reserved" }, { 'R','W', F_RDWR, "Read-write area" },