Linux-Hwmon Archive mirror
 help / color / mirror / Atom feed
From: Seiji Nishikawa <snishika@redhat.com>
To: pali@kernel.org
Cc: jdelvare@suse.com, linux@roeck-us.net,
	linux-hwmon@vger.kernel.org, snishika@redhat.com
Subject: [PATCH] hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist
Date: Sat, 23 Dec 2023 16:36:58 +0900	[thread overview]
Message-ID: <20231223073658.354773-1-snishika@redhat.com> (raw)

This patch, in addition to 95d88d054ad9 that added Dell Precision 7510 to fan
control whitelist, also adds Precision 7540 to the whitelist, which allows manual
PWM control on Dell Precision 7540. It has been confirmed that the same SMM
commands work to enable/disable manual PWM control on Dell Precision 7540.
---
 drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
index 44aaf9b9191d..f946257f72c6 100644
--- a/drivers/hwmon/dell-smm-hwmon.c
+++ b/drivers/hwmon/dell-smm-hwmon.c
@@ -1330,6 +1330,14 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
 		},
 		.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
 	},
+        {
+                .ident = "Dell Precision 7540",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                        DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7540"),
+                },
+                .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+        },
 	{
 		.ident = "Dell XPS 13 7390",
 		.matches = {
-- 
2.42.0


             reply	other threads:[~2023-12-23  7:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-23  7:36 Seiji Nishikawa [this message]
2023-12-23 11:46 ` [PATCH] hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist Pali Rohár
2024-01-08 15:34 ` Guenter Roeck
2024-03-25  4:59   ` 'Re: [PATCH] hwmon: (dell-smm) Also add Dell Precision 7540 to fan control whitelist' Seiji Nishikawa
2024-03-25  4:59     ` [PATCH v2] hwmon: (dell-smm) Add Dell Precision 7540 to fan control whitelist Seiji Nishikawa
2024-03-25 16:08       ` Guenter Roeck
2024-03-26  5:24         ` 'Re: [PATCH v2] hwmon: (dell-smm) Add Dell Precision 7540 to fan control whitelist' Seiji Nishikawa

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=20231223073658.354773-1-snishika@redhat.com \
    --to=snishika@redhat.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).