Blame SOURCES/0005-dmidecode-Add-Logical-non-volatile-device-to-the-mem.patch

abf46d
From 74dfb854b8199ddb0a27e89296fa565f4706cb9d Mon Sep 17 00:00:00 2001
abf46d
From: Jean Delvare <jdelvare@suse.de>
abf46d
Date: Wed, 16 Jan 2019 09:04:55 +0100
abf46d
Subject: [PATCH 5/5] dmidecode: Add "Logical non-volatile device" to the
abf46d
 memory device types
abf46d
abf46d
When adding support for non-volative memory, we forgot to add
abf46d
"Logical non-volatile device" to the list of memory types. This
abf46d
causes NVDIMM modules to show up as <OUT OF SPEC>. Fix the problem
abf46d
by adding the missing enumerated value.
abf46d
abf46d
Signed-off-by: Jean Delvare <jdelvare@suse.de>
abf46d
Reviewed-by: Jerry Hoemann <jerry.hoemann@hpe.com>
abf46d
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
abf46d
---
abf46d
 dmidecode.c | 5 +++--
abf46d
 1 file changed, 3 insertions(+), 2 deletions(-)
abf46d
abf46d
diff --git a/dmidecode.c b/dmidecode.c
abf46d
index 903ef356ea9e..91c6f622e3d0 100644
abf46d
--- a/dmidecode.c
abf46d
+++ b/dmidecode.c
abf46d
@@ -2471,10 +2471,11 @@ static const char *dmi_memory_device_type(u8 code)
abf46d
 		"LPDDR",
abf46d
 		"LPDDR2",
abf46d
 		"LPDDR3",
abf46d
-		"LPDDR4" /* 0x1E */
abf46d
+		"LPDDR4",
abf46d
+		"Logical non-volatile device" /* 0x1F */
abf46d
 	};
abf46d
 
abf46d
-	if (code >= 0x01 && code <= 0x1E)
abf46d
+	if (code >= 0x01 && code <= 0x1F)
abf46d
 		return type[code - 0x01];
abf46d
 	return out_of_spec;
abf46d
 }
abf46d
-- 
abf46d
2.17.1
abf46d