Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: W_Armin@gmx.de
To: pali@kernel.org
Cc: linux@roeck-us.net, jdelvare@suse.com, linux-hwmon@vger.kernel.org
Subject: [PATCH 4/5] hwmon: (dell-smm) Add Dell Inspiron 3505 config data
Date: Thu, 21 Oct 2021 19:54:46 +0200	[thread overview]
Message-ID: <20211021175447.5380-5-W_Armin@gmx.de> (raw)
In-Reply-To: <20211021175447.5380-1-W_Armin@gmx.de>

From: Armin Wolf <W_Armin@gmx.de>

After checking the fan speeds reported with the
Dell Diag UEFI ROM, its safe to permanently
set fan_max to I8K_FAN_HIGH and fan_mult
to 1 for the Dell Inspiron 3505.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
 drivers/hwmon/dell-smm-hwmon.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
index 5f0338b4a717..2579dd646b20 100644
--- a/drivers/hwmon/dell-smm-hwmon.c
+++ b/drivers/hwmon/dell-smm-hwmon.c
@@ -990,6 +990,7 @@ struct i8k_config_data {
 };

 enum i8k_configs {
+	DELL_INSPIRON_3505,
 	DELL_LATITUDE_D520,
 	DELL_PRECISION_490,
 	DELL_STUDIO,
@@ -997,6 +998,10 @@ enum i8k_configs {
 };

 static const struct i8k_config_data i8k_config_data[] __initconst = {
+	[DELL_INSPIRON_3505] = {
+		.fan_mult = 1,
+		.fan_max = I8K_FAN_HIGH,
+	},
 	[DELL_LATITUDE_D520] = {
 		.fan_mult = 1,
 		.fan_max = I8K_FAN_TURBO,
@@ -1030,6 +1035,14 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Latitude"),
 		},
 	},
+	{
+		.ident = "Dell Inspiron 3505",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3505"),
+		},
+		.driver_data = (void *)&i8k_config_data[DELL_INSPIRON_3505],
+	},
 	{
 		.ident = "Dell Inspiron 2",
 		.matches = {
--
2.20.1


  parent reply	other threads:[~2021-10-21 17:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-21 17:54 [PATCH 0/5] hwmon: (dell-smm) Miscellaneous Improvments W_Armin
2021-10-21 17:54 ` [PATCH 1/5] hwmon: (dell-smm) Sort includes in alphabetical order W_Armin
2021-10-21 18:16   ` Pali Rohár
2021-10-21 17:54 ` [PATCH 2/5] hwmon: (dell-smm) Use strscpy_pad() W_Armin
2021-10-21 18:17   ` Pali Rohár
2021-10-21 17:54 ` [PATCH 3/5] hwmon: (dell-smm) Return -ENOIOCTLCMD instead of -EINVAL W_Armin
2021-10-21 18:17   ` Pali Rohár
2021-10-21 17:54 ` W_Armin [this message]
2021-10-21 18:05   ` [PATCH 4/5] hwmon: (dell-smm) Add Dell Inspiron 3505 config data Pali Rohár
2021-10-21 18:36     ` Armin Wolf
2021-10-21 18:42       ` Pali Rohár
2021-10-21 17:54 ` [PATCH 5/5] hwmon: (dell-smm) Speed up setting of fan speed W_Armin
2021-10-21 18:14   ` Pali Rohár

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211021175447.5380-5-W_Armin@gmx.de \
    --to=w_armin@gmx.de \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=pali@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox