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

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