Skip to contentSkip to conversation

hwmon: (applesmc) Add DMI product matches for Intel-based Xserves (non-RackMac*)

PATCH Guenter Roeck 1 participant 1 message Nov 30, 2020

lore
Share & tools
lore

Guenter Roeck

author Applied
#0 lore raw
Quoted 11 lines · Joe Jamison

This patch adds the DMI Product ID for Intel-based Xserve machines. They use the same SMC accessible from the same data ports.

The 'Xserve' product ID only resolves to SMC-containing Intel-based Xserves, as the PowerPC machines are identified by the 'RackMac' identifier.

Tested on: Xserve3,1

Applied.

Thanks,
Guenter

Quoted 22 lines
---
 drivers/hwmon/applesmc.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/hwmon/applesmc.c +4 -0
index 79b498f816fe..89207af81c48 100644
@@ -1299,6 +1299,10 @@ static const struct dmi_system_id applesmc_whitelist[] __initconst = {
 	  DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
 	  DMI_MATCH(DMI_PRODUCT_NAME, "iMac") },
 	},
+	{ applesmc_dmi_match, "Apple Xserve", {
+	  DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
+	  DMI_MATCH(DMI_PRODUCT_NAME, "Xserve") },
+	},
 	{ .ident = NULL }
 };
 
Signature · 1 line
2.20.1