From: sashiko-bot@kernel.org
To: "Sebastián Peyrott" <speyrott@gmail.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2 1/1] hwmon: Add Minisforum UM780 XTX EC monitoring and fan control
Date: Tue, 18 Aug 2026 18:23:09 +0000 [thread overview]
Message-ID: <20260818182310.32A621F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260818181345.203295-2-speyrott@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The `um780xtx_suspend` PM callback propagates errors from `um780xtx_cache_state()`, which will abort the entire system suspend if an EC read fails or the profile is unknown.
--
--- Patch [1]: [PATCH v2 1/1] hwmon: Add Minisforum UM780 XTX EC monitoring and fan control ---
commit 7277194b4d85f9b2916cb9ff030086a488cff81b
Author: Sebastián Peyrott <speyrott@gmail.com>
hwmon: Add Minisforum UM780 XTX EC monitoring and fan control
This commit adds a DMI-gated hwmon driver for the embedded controller used by
the Minisforum UM780 XTX. It exposes CPU and system fan control temperatures
and tachometers, and allows selecting OEM CPU fan profiles and changing system
fan transition temperatures. It also caches and restores settings across
suspend/resume.
> diff --git a/drivers/hwmon/minisforum-um780xtx.c b/drivers/hwmon/minisforum-um780xtx.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/hwmon/minisforum-um780xtx.c
[ ... ]
> +static int um780xtx_suspend(struct device *dev)
> +{
> + struct um780xtx_data *data = dev_get_drvdata(dev);
> +
> + guard(hwmon_lock)(data->hwmon_dev);
> + return um780xtx_cache_state(data);
[Severity: High]
Does returning this error abort the entire system suspend?
In um780xtx_suspend(), if communicating with the embedded controller fails
momentarily or returns an unknown profile, um780xtx_cache_state() returns
an error code like -ENODEV or -EIO. Propagating this error to the PM core
causes the system suspend operation to be aborted.
Should this code log a warning and return 0 instead of aborting suspend for
a fan state save failure?
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260818181345.203295-2-speyrott@gmail.com?part=1
next prev parent reply other threads:[~2026-08-18 18:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 18:13 [PATCH v2 0/1] hwmon: Add Minisforum UM780 XTX EC monitoring and fan control Sebastián Peyrott
2026-08-18 18:13 ` [PATCH v2 1/1] " Sebastián Peyrott
2026-08-18 18:23 ` sashiko-bot [this message]
2026-08-18 23:24 ` Guenter Roeck
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=20260818182310.32A621F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=speyrott@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