All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alexis Czezar Torreno" <alexisczezar.torreno@analog.com>
Cc: robh@kernel.org, conor+dt@kernel.org,
	linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 4/4] hwmon: (pmbus/max20830): add support for max20830c and max20840c
Date: Thu, 30 Jul 2026 01:14:06 +0000	[thread overview]
Message-ID: <20260730011406.A6B871F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260730-dev-max20830c-v5-4-a7553f84ee74@analog.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The patch adds support for MAX20830C and MAX20840C devices but fails to add their corresponding compatible strings and I2C IDs to the driver's match tables.
--

--- Patch [4]: [PATCH v5 4/4] hwmon: (pmbus/max20830): add support for max20830c and max20840c ---
commit f53870a8f52f5aa8dbc791f9a7e148eeab915f24
Author: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>

hwmon: (pmbus/max20830): add support for max20830c and max20840c

Add support for MAX20830C and MAX20840 step-down DC-DC switching regulator
with PMBus interface. MAX20830C is a different packaging for MAX20830, and
MAX20840C supports 40A regulation compared to MAX20830 that is only 30A.

> diff --git a/drivers/hwmon/pmbus/max20830.c b/drivers/hwmon/pmbus/max20830.c
> index ddead72a8db5d..94433deda0113 100644
> --- a/drivers/hwmon/pmbus/max20830.c
> +++ b/drivers/hwmon/pmbus/max20830.c
> @@ -21,6 +21,12 @@ struct max20830_data {
>  	u32 vout_rfb2;
>  };
>  
> +static const char * const supported_chip_ids[] = {
> +	"MAX20830",
> +	"MAX20830C",
> +	"MAX20840C",
> +};

[Severity: High]
While the new chips are added to the internal string matching list here, does
the driver also need to add these to max20830_id and max20830_of_match?

Without the new compatible strings in these tables, won't the devices fail
to bind to the driver when instantiated via Device Tree?

For reference, the existing tables at the bottom of the driver only have
entries for the original chip:

static const struct i2c_device_id max20830_id[] = {
	{"max20830"},
	{ }
};

static const struct of_device_id max20830_of_match[] = {
	{ .compatible = "adi,max20830" },
	{ }
};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260730-dev-max20830c-v5-0-a7553f84ee74@analog.com?part=4

  reply	other threads:[~2026-07-30  1:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  1:03 [PATCH v5 0/4] Add support for MAX20830C and MAX20840C step-down DC-DC switching regulator Alexis Czezar Torreno
2026-07-30  1:03 ` [PATCH v5 1/4] dt-bindings: hwmon: (pmbus/max20830): add VOUT feedback resistor properties and complete examples Alexis Czezar Torreno
2026-07-30  1:10   ` sashiko-bot
2026-07-30  2:36   ` Guenter Roeck
2026-07-30  1:03 ` [PATCH v5 2/4] hwmon: (pmbus/max20830): add VOUT feedback resistor scaling support Alexis Czezar Torreno
2026-07-30  1:14   ` sashiko-bot
2026-07-30  2:33     ` Guenter Roeck
2026-07-30  2:40   ` Guenter Roeck
2026-07-30  1:03 ` [PATCH v5 3/4] dt-bindings: hwmon: (pmbus/max20830): add max20830c and max20840c support Alexis Czezar Torreno
2026-07-30  1:11   ` sashiko-bot
2026-07-30  2:41   ` Guenter Roeck
2026-07-30  1:03 ` [PATCH v5 4/4] hwmon: (pmbus/max20830): add support for max20830c and max20840c Alexis Czezar Torreno
2026-07-30  1:14   ` sashiko-bot [this message]
2026-07-30  2:35     ` Guenter Roeck
2026-07-30  2:42   ` 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=20260730011406.A6B871F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexisczezar.torreno@analog.com \
    --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 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.