i8k: Add support for Dell Precision 490 and Latitude D520

This change “i8k: Add support for Dell Precision 490 and Latitude D520” (commit 7b88344) in Linux kernel is authored by Guenter Roeck <linux [at] roeck-us.net> on Sat Jun 21 08:08:12 2014 -0700.

Description of "i8k: Add support for Dell Precision 490 and Latitude D520"

The change “i8k: Add support for Dell Precision 490 and Latitude D520” introduces changes as follows.

i8k: Add support for Dell Precision 490 and Latitude D520

Both systems need non-standard parameters for fan multiplier
and maximum fan speed.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: Andreas Mohr <andi@lisas.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Linux kernel releases containing commit 7b88344

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "i8k: Add support for Dell Precision 490 and Latitude D520"

There are 27 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/char/i8k.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c
index 6a6c085efa69..4e10c4b3c8e3 100644
--- a/drivers/char/i8k.c
+++ b/drivers/char/i8k.c
@@ -648,11 +648,21 @@ struct i8k_config_data {
 };
 
 enum i8k_configs {
+	DELL_LATITUDE_D520,
+	DELL_PRECISION_490,
 	DELL_STUDIO,
 	DELL_XPS_M140,
 };
 
 static const struct i8k_config_data i8k_config_data[] = {
+	[DELL_LATITUDE_D520] = {
+		.fan_mult = 1,
+		.fan_max = I8K_FAN_TURBO,
+	},
+	[DELL_PRECISION_490] = {
+		.fan_mult = 1,
+		.fan_max = I8K_FAN_TURBO,
+	},
 	[DELL_STUDIO] = {
 		.fan_mult = 1,
 		.fan_max = I8K_FAN_HIGH,
@@ -685,6 +695,14 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron"),
 		},
 	},
+	{
+		.ident = "Dell Latitude D520",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D520"),
+		},
+		.driver_data = (void *)&i8k_config_data[DELL_LATITUDE_D520],
+	},
 	{
 		.ident = "Dell Latitude 2",
 		.matches = {
@@ -706,6 +724,15 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "MP061"),
 		},
 	},
+	{
+		.ident = "Dell Precision 490",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME,
+				  "Precision WorkStation 490"),
+		},
+		.driver_data = (void *)&i8k_config_data[DELL_PRECISION_490],
+	},
 	{
 		.ident = "Dell Precision",
 		.matches = {

The commit for this change in Linux stable tree is 7b88344 (patch).

Last modified: 2020/02/10