From: sashiko-bot@kernel.org
To: "Eugene Shalygin" <eugene.shalygin@gmail.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (asus-ec-sensors) add ROG MAXIMUS Z790 EXTREME
Date: Sun, 07 Jun 2026 14:59:11 +0000 [thread overview]
Message-ID: <20260607145912.558FF1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260607144238.128259-1-eugene.shalygin@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing sensor metadata for ROG MAXIMUS Z790 EXTREME causes requested sensors to be silently ignored.
--
commit 409e24c49843127f834ed70831b89be991b9e50c
Author: Brian Downey <bdowne01@gmail.com>
hwmon: (asus-ec-sensors) add ROG MAXIMUS Z790 EXTREME
Add support for ROG MAXIMUS Z790 EXTREME
> diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c
> index b5d97a27f80d3..34f96aba5cb99 100644
> --- a/drivers/hwmon/asus-ec-sensors.c
> +++ b/drivers/hwmon/asus-ec-sensors.c
[ ... ]
> @@ -514,6 +514,13 @@ static const struct ec_board_info board_info_maximus_z690_formula = {
> .family = family_intel_600_series,
> };
>
> +static const struct ec_board_info board_info_maximus_z790_extreme = {
> + .sensors = SENSOR_TEMP_T_SENSOR | SENSOR_TEMP_VRM |
> + SENSOR_SET_TEMP_WATER | SENSOR_FAN_WATER_FLOW,
> + .mutex_path = ASUS_HW_ACCESS_MUTEX_RMTW_ASMX,
> + .family = family_intel_700_series,
> +};
> +
[Severity: Medium]
Will these water sensors be successfully exposed to userspace?
The newly added board configuration specifies SENSOR_SET_TEMP_WATER and
SENSOR_FAN_WATER_FLOW. However, looking at the sensors_family_intel_700 array
used for family_intel_700_series:
static const struct ec_sensor_info sensors_family_intel_700[] = {
[ec_sensor_temp_t_sensor] =
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x01, 0x09),
[ec_sensor_temp_t_sensor_2] =
EC_SENSOR("T_Sensor 2", hwmon_temp, 1, 0x01, 0x05),
[ec_sensor_temp_vrm] = EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33),
[ec_sensor_fan_cpu_opt] =
EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
};
This array lacks the initializers for the requested water sensors. Because
they are not explicitly initialized, their definitions default to zero and
they will be silently ignored during sysfs creation.
While the driver safely handles zeroed structs without causing out-of-bounds
reads or sysfs corruption (because get_sensor_value() returns 0 when size=0
and hwmon_genattrs skips attributes without templates), this regression
means the requested water sensors will not be exposed to userspace.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260607144238.128259-1-eugene.shalygin@gmail.com?part=1
next prev parent reply other threads:[~2026-06-07 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-07 14:42 [PATCH] hwmon: (asus-ec-sensors) add ROG MAXIMUS Z790 EXTREME Eugene Shalygin
2026-06-07 14:59 ` sashiko-bot [this message]
2026-06-07 15:42 ` 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=20260607145912.558FF1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eugene.shalygin@gmail.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.