From: Guenter Roeck <linux@roeck-us.net>
To: Eugene Shalygin <eugene.shalygin@gmail.com>
Cc: Li XingYang <yanhuoguifan@gmail.com>,
corbet@lwn.net, jdelvare@suse.com, linux-doc@vger.kernel.org,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: (asus-ec-sensors) add TUF GAMING X670E PLUS
Date: Sat, 30 Nov 2024 08:52:46 -0800 [thread overview]
Message-ID: <72181994-c982-49e8-beae-4ee16a789f4a@roeck-us.net> (raw)
In-Reply-To: <CAB95QATeOynGJ=MMJrsMXatMms0u9ec+qJbh6QfAEUTnjNmZdA@mail.gmail.com>
On 11/30/24 07:47, Eugene Shalygin wrote:
> Hi Günter,
>
>>> diff --git a/Documentation/hwmon/asus_ec_sensors.rst b/Documentation/hwmon/asus_ec_sensors.rst
>>> index ca38922f4ec5..d049a62719b0 100644
>>> --- a/Documentation/hwmon/asus_ec_sensors.rst
>>> +++ b/Documentation/hwmon/asus_ec_sensors.rst
>>> @@ -17,6 +17,7 @@ Supported boards:
>>> * ROG CROSSHAIR VIII IMPACT
>>> * ROG CROSSHAIR X670E HERO
>>> * ROG CROSSHAIR X670E GENE
>>> + * TUF GAMING X670E PLUS
>>> * ROG MAXIMUS XI HERO
>>> * ROG MAXIMUS XI HERO (WI-FI)
>>> * ROG STRIX B550-E GAMING
>>
>> I don't understand how this is "sorted". What is the sorting criteria ?
>
> I believe the list in static const struct dmi_system_id dmi_table[]
> and the list in the .rst file are in the same order, and I want the
> board declarations to follow that.
>
So you don't care about alphabetic order, just about using the same order
in both files ? Fine with me, and I don't have to understand it, but it is a
deviation from the current model and should be documented for reference to
ensure that I don't call out people for not using non-alphabetic order
in the future. If there is some other order, it would be even more important
to document it to help people understand what it is supposed to be.
>>> diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c
>>> index 9555366aeaf0..f02e4f5cc6db 100644
>>> --- a/drivers/hwmon/asus-ec-sensors.c
>>> +++ b/drivers/hwmon/asus-ec-sensors.c
>>> @@ -250,6 +250,8 @@ static const struct ec_sensor_info sensors_family_amd_600[] = {
>>> EC_SENSOR("Water_In", hwmon_temp, 1, 0x01, 0x00),
>>> [ec_sensor_temp_water_out] =
>>> EC_SENSOR("Water_Out", hwmon_temp, 1, 0x01, 0x01),
>>> + [ec_sensor_fan_cpu_opt] =
>>> + EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
>>
>> This is an unrelated change. It affects other boards of the same family.
>> It needs to be a separate patch, it needs to be explained, and it needs to
>> get some confirmation that it works on the other boards of the same series.
>
> Well, it is the same register as in the previous generation, and while
> it would be nice to confirm that it works in other models of the 600th
> family, I can't see how XingYang can do that. I can check with the AMD
> 800th series though...
>
Ok with me if you confirm it, but it still needs to be a separate patch
since it it not about adding support for a specific board.
Guenter
next prev parent reply other threads:[~2024-11-30 16:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-30 13:38 [PATCH 0/1] " Li XingYang
2024-11-30 13:38 ` [PATCH 1/1] " Li XingYang
2024-11-30 14:33 ` Eugene Shalygin
2024-11-30 14:47 ` [PATCH v2] " Li XingYang
2024-11-30 15:29 ` Guenter Roeck
2024-11-30 15:47 ` Eugene Shalygin
2024-11-30 16:52 ` Guenter Roeck [this message]
2024-12-01 1:17 ` Li XingYang
2024-12-01 1:48 ` Guenter Roeck
2024-12-01 20:48 ` Eugene Shalygin
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=72181994-c982-49e8-beae-4ee16a789f4a@roeck-us.net \
--to=linux@roeck-us.net \
--cc=corbet@lwn.net \
--cc=eugene.shalygin@gmail.com \
--cc=jdelvare@suse.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yanhuoguifan@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®