ledmon/0002-add-Dell-15G-servers.patch
Dirk Mueller 862a77460a Accepting request 990005 from home:hmzhao:branches:Base:System
- Update to version 0.96: (PED-85)
  * Manual updates, clarify --listed-only option
  * Fix cache indexing of ATA port
  * Fixes in regard to macros
  * Fix memory leak in amd_ipmi.c
  * Fix NULL pointer dereferences in sysfs.c
  * Make messages appear in service log immediately
- add patches after 0.96:
  + 0001-Ledctl-slots-management-94.patch
  + 0002-add-Dell-15G-servers.patch

OBS-URL: https://build.opensuse.org/request/show/990005
OBS-URL: https://build.opensuse.org/package/show/Base:System/ledmon?expand=0&rev=43
2022-07-18 19:38:42 +00:00

57 lines
1.3 KiB
Diff

From 7274b21797d1ad76a2f4ccd2e3f70279e50512b4 Mon Sep 17 00:00:00 2001
From: prabhakar <prabhakar.pujeri@dell.com>
Date: Tue, 5 Jul 2022 08:16:18 -0400
Subject: [PATCH 2/2] add Dell 15G servers
---
src/dellssd.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/dellssd.c b/src/dellssd.c
index 5a7ac5f4a629..fce3110d62d5 100644
--- a/src/dellssd.c
+++ b/src/dellssd.c
@@ -93,6 +93,9 @@ enum {
DELL_13G_MODULAR = 0x21,
DELL_14G_MONOLITHIC = 0x30,
DELL_14G_MODULAR = 0x31,
+ DELL_15G_MONOLITHIC = 0x40,
+ DELL_15G_MODULAR = 0x41,
+
};
int get_dell_server_type()
@@ -125,6 +128,9 @@ int get_dell_server_type()
case DELL_13G_MODULAR:
case DELL_14G_MONOLITHIC:
case DELL_14G_MODULAR:
+ case DELL_15G_MONOLITHIC:
+ case DELL_15G_MODULAR:
+
gen = rdata[10];
return gen;
default:
@@ -166,6 +172,9 @@ static int ipmi_setled(int b, int d, int f, int state)
break;
case DELL_14G_MONOLITHIC:
case DELL_14G_MODULAR:
+ case DELL_15G_MONOLITHIC:
+ case DELL_15G_MODULAR:
+
data[1] = DELL_OEM_STORAGE_GETDRVMAP_14G;
break;
}
@@ -206,6 +215,9 @@ static int ipmi_setled(int b, int d, int f, int state)
break;
case DELL_14G_MONOLITHIC:
case DELL_14G_MODULAR:
+ case DELL_15G_MONOLITHIC:
+ case DELL_15G_MODULAR:
+
data[1] = DELL_OEM_STORAGE_SETDRVSTATUS_14G;
break;
}
--
2.34.1