From: Guenter Roeck <linux@roeck-us.net>
To: Thomas Hebb <tommyhebb@gmail.com>, linux-kernel@vger.kernel.org
Cc: "Jean Delvare" <jdelvare@suse.com>,
"Pali Rohár" <pali.rohar@gmail.com>,
linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (dell-smm) Use one DMI match for all XPS models
Date: Wed, 1 Apr 2020 23:15:23 -0700 [thread overview]
Message-ID: <a7ee8173-bbb8-a68c-8b46-da2174cd08ad@roeck-us.net> (raw)
In-Reply-To: <be17c0a111983e886d871db8dc2fc8fbfe8e2da0.1585800134.git.tommyhebb@gmail.com>
On 4/1/20 9:02 PM, Thomas Hebb wrote:
> Currently, each new XPS has to be added manually for module autoloading
> to work. Since fan multiplier autodetection should work fine on all XPS
> models, just match them all with one block like is done for Precision
> and Studio.
>
> The only match we replace that doesn't already use autodetection is
> "XPS13" which, according to Google, only matches the XPS 13 9333. (All
> other XPS 13 models have "XPS" as its own word, surrounded by spaces.)
> According to the thread at [1], autodetection works for the XPS 13 9333,
> meaning this shouldn't regress it. I do not own one to confirm with,
> though.
>
> Tested on an XPS 13 9350 and confirmed the module now autoloads and
> reports reasonable-looking data. I am using BIOS 1.12.2 and do not see
> any freezes when querying fan speed.
>
> [1] https://lore.kernel.org/patchwork/patch/525367/
>
> Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
> ---
>
> drivers/hwmon/dell-smm-hwmon.c | 19 ++-----------------
> 1 file changed, 2 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> index d4c83009d625..c1af4c801dd8 100644
> --- a/drivers/hwmon/dell-smm-hwmon.c
> +++ b/drivers/hwmon/dell-smm-hwmon.c
> @@ -1087,14 +1087,6 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = {
> },
> .driver_data = (void *)&i8k_config_data[DELL_STUDIO],
> },
> - {
> - .ident = "Dell XPS 13",
> - .matches = {
> - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> - DMI_MATCH(DMI_PRODUCT_NAME, "XPS13"),
> - },
> - .driver_data = (void *)&i8k_config_data[DELL_XPS],
So .driver_data is no longer needed for xps 13 models ? Really ?
Guenter
> - },
> {
> .ident = "Dell XPS M140",
> .matches = {
> @@ -1104,17 +1096,10 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = {
> .driver_data = (void *)&i8k_config_data[DELL_XPS],
> },
> {
> - .ident = "Dell XPS 15 9560",
> - .matches = {
> - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> - DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9560"),
> - },
> - },
> - {
> - .ident = "Dell XPS 15 9570",
> + .ident = "Dell XPS",
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> - DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9570"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "XPS"),
Quite frankly, I'd want to have this tested on many more models.
I don't really want to deal with the fallout if it doesn't work
on all xps a3 and xps 15 systems, especially since Dell doesn't
support the BIOS interface used by this driver.
Guenter
> },
> },
> { }
>
next prev parent reply other threads:[~2020-04-02 6:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 4:02 Thomas Hebb
2020-04-02 6:15 ` Guenter Roeck [this message]
[not found] ` <CAMcCCgQ4SQHoSirXFbHU5AjikVnjmULSd73MBSjeyVGDG2j5bQ@mail.gmail.com>
2020-04-02 17:16 ` Tom Hebb
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=a7ee8173-bbb8-a68c-8b46-da2174cd08ad@roeck-us.net \
--to=linux@roeck-us.net \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=tommyhebb@gmail.com \
/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
all inboxes | Powered by JetHome®