Blame SOURCES/0010-dmidecode-Fix-System-Slot-Information-for-PCIe-SSD.patch

65c10b
From fd08479625b5845e4d725ab628628f7ebfccc407 Mon Sep 17 00:00:00 2001
65c10b
From: Prabhakar pujeri <Prabhakar.Pujeri@dell.com>
65c10b
Date: Tue, 15 Oct 2019 14:24:46 +0200
65c10b
Subject: [PATCH 10/11] dmidecode: Fix System Slot Information for PCIe SSD
65c10b
65c10b
Output for type 9 show <out of spec> for PCIe SSD. SMBIOS spec table
65c10b
48 describes 2.5" and 3.5" PCIe SSD formats.
65c10b
65c10b
Signed-off-by: Prabhakar pujeri <prabhakar.pujeri@dell.com>
65c10b
Signed-off-by: Jean Delvare <jdelvare@suse.de>
65c10b
---
65c10b
 dmidecode.c | 6 ++++--
65c10b
 1 file changed, 4 insertions(+), 2 deletions(-)
65c10b
65c10b
diff --git a/dmidecode.c b/dmidecode.c
65c10b
index aef18f8fe998..68bfa457c9bd 100644
65c10b
--- a/dmidecode.c
65c10b
+++ b/dmidecode.c
65c10b
@@ -1906,10 +1906,12 @@ static const char *dmi_slot_length(u8 code)
65c10b
 		"Other", /* 0x01 */
65c10b
 		"Unknown",
65c10b
 		"Short",
65c10b
-		"Long" /* 0x04 */
65c10b
+		"Long",
65c10b
+		"2.5\" drive form factor",
65c10b
+		"3.5\" drive form factor" /* 0x06 */
65c10b
 	};
65c10b
 
65c10b
-	if (code >= 0x01 && code <= 0x04)
65c10b
+	if (code >= 0x01 && code <= 0x06)
65c10b
 		return length[code - 0x01];
65c10b
 	return out_of_spec;
65c10b
 }
65c10b
-- 
65c10b
2.17.1
65c10b