Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Debjit Ghosh" <dghosh@juniper.net>, linux-hwmon@vger.kernel.org
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] hwmon: (max20751): Add support for MAX20754
Date: Tue, 01 Dec 2026 18:48:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-243998@kernel.org> (raw)
In-Reply-To: <20261201183859.2704824-2-dghosh@juniper.net>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] docs: hwmon: broken max20754 toctree entry in
  Documentation/hwmon/index.rst
- [Low] hwmon: (max20751) Kconfig and sysfs doc not updated for MAX20754
--

commit f8c1a12d192b45df3e5f2a2b4fe1c6ed4c75f02e
Author: Georgi Vlaev <gvlaev@juniper.net>

hwmon: (max20751): Add support for MAX20754

This commit adds support and documentation for the Maxim MAX20754 PMBus power
controller to the max20751 driver.

> diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
> index ddfcd077d96e7..f6b489260b30c 100644
> --- a/Documentation/hwmon/index.rst
> +++ b/Documentation/hwmon/index.rst
> @@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers
>     max17616
>     max20730
>     max20751
> +   max20754
>     max20826
>     max20830
>     max20860a

[Severity: Low]
Does adding max20754 to the toctree in Documentation/hwmon/index.rst break
make htmldocs?  MAX20754 is documented in Documentation/hwmon/max20751.rst
rather than in a separate Documentation/hwmon/max20754.rst file.

[ ... ]

> diff --git a/drivers/hwmon/pmbus/max20751.c b/drivers/hwmon/pmbus/max20751.c
> index e85676433dca1..92103ca5b5758 100644
> --- a/drivers/hwmon/pmbus/max20751.c
> +++ b/drivers/hwmon/pmbus/max20751.c
> @@ -1,6 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0-or-later
>  /*
> - * Hardware monitoring driver for Maxim MAX20751
> + * Hardware monitoring driver for Maxim MAX20751, MAX20754
>   *
>   * Copyright (c) 2015 Guenter Roeck
>   */
> @@ -12,27 +12,47 @@
>  #include <linux/i2c.h>
>  #include "pmbus.h"
>  
> -static struct pmbus_driver_info max20751_info = {
> -	.pages = 1,
> -	.format[PSC_VOLTAGE_IN] = linear,
> -	.format[PSC_VOLTAGE_OUT] = vid,
> -	.vrm_version[0] = vr12,
> -	.format[PSC_TEMPERATURE] = linear,
> -	.format[PSC_CURRENT_OUT] = linear,
> -	.format[PSC_POWER] = linear,
> -	.func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
> -		PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> -		PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> -		PMBUS_HAVE_POUT,
> +enum chips { max20751, max20754 };
> +
> +static struct pmbus_driver_info max20751_info[] = {
> +	[max20751] = {
> +		.pages = 1,
> +		.format[PSC_VOLTAGE_IN] = linear,
> +		.format[PSC_VOLTAGE_OUT] = vid,
> +		.vrm_version[0] = vr12,
> +		.format[PSC_TEMPERATURE] = linear,
> +		.format[PSC_CURRENT_OUT] = linear,
> +		.format[PSC_POWER] = linear,
> +		.func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT |
> +			PMBUS_HAVE_STATUS_VOUT |
> +			PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> +			PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> +			PMBUS_HAVE_POUT,
> +	},
> +	[max20754] = {
> +		.pages = 1,
> +		.format[PSC_VOLTAGE_IN] = linear,
> +		.format[PSC_VOLTAGE_OUT] = linear,
> +		.format[PSC_TEMPERATURE] = linear,
> +		.format[PSC_CURRENT_OUT] = linear,
> +		.func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT |
> +			PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT |
> +			PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |
> +			PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP |
> +			PMBUS_HAVE_TEMP2,
> +	},
>  };

[Severity: Low]
Should SENSORS_MAX20751 in drivers/hwmon/pmbus/Kconfig and the Sysfs entries
table in Documentation/hwmon/max20751.rst also be updated for MAX20754?
Kconfig only mentions MAX20751, and Documentation/hwmon/max20751.rst does not
document the temp2 attributes enabled by PMBUS_HAVE_TEMP2 or note that the
power1 attributes apply only to MAX20751.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201183859.2704824-1-dghosh@juniper.net?part=1

  reply	other threads:[~2026-12-01 18:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 18:38 [PATCH 0/3] hwmon: Add support for pmbus max20754 device Debjit Ghosh
2026-12-01 18:38 ` [PATCH 1/3] hwmon: (max20751): Add support for MAX20754 Debjit Ghosh
2026-12-01 18:48   ` sashiko-bot [this message]
2026-12-01 18:38 ` [PATCH 2/3] hwmon: (max20751): Add OF device ID table Debjit Ghosh
2026-12-01 18:38 ` [PATCH 3/3] dt-bindings: hwmon: add maxim,max20754 compatible Debjit Ghosh
2026-12-01 18:49 ` [PATCH 0/3] hwmon: Add support for pmbus max20754 device sashiko-bot

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=sashiko-outbox-243998@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dghosh@juniper.net \
    --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