From: sashiko-bot@kernel.org
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
linux-hwmon@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 2/2] hwmon: (pmbus/max20860a) Add driver for Analog Devices MAX20860A
Date: Mon, 01 Jun 2026 19:06:06 +0000 [thread overview]
Message-ID: <20260601190606.8BADC1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260601184516.919488-3-sanman.pradhan@hpe.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Mismatch between the driver's regulator node expectation and the device tree binding schema, causing DT regulator properties to be silently ignored and the regulator to be unusable by consumers.
--
commit 66bb21f2d9ec87355cc55cca84538b6ad8d8842c
Author: Syed Arif <arif.syed@hpe.com>
hwmon: (pmbus/max20860a) Add driver for Analog Devices MAX20860A
This commit adds a new PMBus driver for the Analog Devices MAX20860A
step-down DC-DC switching regulator. It provides hardware monitoring for
voltage, current, and temperature, along with optional regulator framework
support.
> diff --git a/drivers/hwmon/pmbus/max20860a.c b/drivers/hwmon/pmbus/max20860a.c
> new file mode 100644
> index 0000000000000..905f916f6c089
> --- /dev/null
> +++ b/drivers/hwmon/pmbus/max20860a.c
[ ... ]
> @@ -0,0 +1,68 @@
[ ... ]
> +#include <linux/regulator/driver.h>
> +#include "pmbus.h"
> +
> +#if IS_ENABLED(CONFIG_SENSORS_MAX20860A_REGULATOR)
> +static const struct regulator_desc max20860a_reg_desc[] = {
> + PMBUS_REGULATOR_ONE("vout"),
[Severity: High]
Will this prevent the regulator core from matching the device tree node?
The PMBUS_REGULATOR_ONE("vout") macro sets of_match to "vout". During
registration, the regulator core searches for a child node named "vout"
or a parent node with that exact name to associate the of_node.
If the device tree schema expects regulator properties directly on the
parent node (which is typically named generically, like regulator@xx),
will the regulator core fail to match the node?
If the match fails, the regulator is registered with of_node = NULL,
which silently ignores regulator constraints and prevents consumers
from referencing it as a supply.
> +};
> +#endif
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260601184516.919488-1-sanman.pradhan@hpe.com?part=2
prev parent reply other threads:[~2026-06-01 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 18:45 [PATCH v4 0/2] hwmon: (pmbus/max20860a) Add driver for Analog Devices MAX20860A Pradhan, Sanman
2026-06-01 18:45 ` [PATCH v4 1/2] dt-bindings: hwmon: pmbus: Add " Pradhan, Sanman
2026-06-01 18:52 ` sashiko-bot
2026-06-01 18:45 ` [PATCH v4 2/2] hwmon: (pmbus/max20860a) Add driver for " Pradhan, Sanman
2026-06-01 19:06 ` sashiko-bot [this message]
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=20260601190606.8BADC1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox