Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Armin Wolf <W_Armin@gmx.de>
To: "Pali Rohár" <pali@kernel.org>
Cc: linux@roeck-us.net, jdelvare@suse.com, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH 4/5] hwmon: (dell-smm) Add Dell Inspiron 3505 config data
Date: Thu, 21 Oct 2021 20:36:16 +0200	[thread overview]
Message-ID: <02f9b445-cc5d-0699-7bac-cbd28d1ea35f@gmx.de> (raw)
In-Reply-To: <20211021180521.a5l2shvor4qwesfe@pali>

Am 21.10.21 um 20:05 schrieb Pali Rohár:
> On Thursday 21 October 2021 19:54:46 W_Armin@gmx.de wrote:
>> 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.
> Hello! Are there any issues without this change on Dell Inspiron 3505?
> Because i8k_config_data[] array is there for machines which need some
> hooks and do not work correctly (e.g. allowing to use I8K_FAN_TURBO).
The Inspiron 3505 works fine without this change. If i8k_config_data[]
is only there for applying
device specific quirks, then this change can be removed.
>> 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
>>


  reply	other threads:[~2021-10-21 18:36 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 ` [PATCH 4/5] hwmon: (dell-smm) Add Dell Inspiron 3505 config data W_Armin
2021-10-21 18:05   ` Pali Rohár
2021-10-21 18:36     ` Armin Wolf [this message]
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=02f9b445-cc5d-0699-7bac-cbd28d1ea35f@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