Blame SOURCES/powerpc-utils-35d01313b5d03069bf8cabbcdfe39944da4ae65c.patch

956c23
commit 35d01313b5d03069bf8cabbcdfe39944da4ae65c
956c23
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
956c23
Date:   Thu Jun 14 16:08:50 2018 -0700
956c23
956c23
    lsslot: add DRC Type description strings for new U.2 PCIe slots
956c23
    
956c23
    Two new PCI slot types can be reported from firmware in the DRC Type
956c23
    property for a PCI device. The following are the slot descriptions for
956c23
    DRC types 43 and 44.
956c23
    
956c23
    43      A U.2 PCI Express Rev 3 4x lane slot with 4x lanes connected
956c23
    44      A U.2 PCI Express Rev 4 4x lane slot with 4x lanes connected
956c23
    
956c23
    Currently, the lsslot utility reports "Unknown" for the description of
956c23
    these pci devices. Update the php_slot_type_msg[] with these new slot
956c23
    descriptions so that lsslot correctly reports them.
956c23
    
956c23
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
956c23
956c23
diff --git a/src/drmgr/common.c b/src/drmgr/common.c
956c23
index 6e89265..30c641f 100644
956c23
--- a/src/drmgr/common.c
956c23
+++ b/src/drmgr/common.c
956c23
@@ -974,6 +974,8 @@ char *php_slot_type_msg[]={
956c23
 	"PCI-E capable, Rev 4, 16x lanes with 1 lane connected",    /* 40 */
956c23
 	"PCI-E capable, Rev 4, 16x lanes with 8x lanes connected",
956c23
 	"PCI-E capable, Rev 4, 16x lanes with 16x lanes connected",
956c23
+	"U.2 PCI-E capable, Rev 3, 4x lanes with 4x lanes connected",
956c23
+	"U.2 PCI-E capable, Rev 4, 4x lanes with 4x lanes connected",
956c23
 };
956c23
 
956c23
 char *
956c23
@@ -984,7 +986,7 @@ node_type(struct dr_node *node)
956c23
 
956c23
 	desc_msg_num = atoi(node->drc_type);
956c23
 	if ((desc_msg_num >= 1 &&  desc_msg_num <= 8) ||
956c23
-	    (desc_msg_num >= 11 && desc_msg_num <= 42))
956c23
+	    (desc_msg_num >= 11 && desc_msg_num <= 44))
956c23
 		desc = php_slot_type_msg[desc_msg_num];
956c23
 	else {
956c23
 		switch (node->dev_type) {