mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
To: "Guenter Roeck" <linux@roeck-us.net>, "Kun Yi" <kunyi@google.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>
Cc: <linux-hwmon@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-doc@vger.kernel.org>,
	Alexis Czezar Torreno <alexisczezar.torreno@analog.com>,
	Carlos Jones Jr <carlosjr.jones@analog.com>
Subject: [PATCH v2 0/3] hwmon: (pmbus/max34440): Bug fixes and supporting new device
Date: Wed, 22 Jul 2026 09:29:28 +0800	[thread overview]
Message-ID: <20260722-max34451_fixes-v2-0-bbddb18ec1d6@analog.com> (raw)

This series fixes register access issues in MAX34451/ADPM devices and adds
support for newer MAX34451 variants and the MAX34452 device.

The first patch addresses an issue where the driver attempts to access
unsupported registers on MAX34451 and ADPM devices, causing CML errors and
triggering ALERT. 
NOTE: Patch already applied to hwmon branch as a fix. It was suggested I
could simply carry this for the meantime to easily submit new versions
of patch 2 and 3 which are dependent of patch 1.

The second patch adds support for the newer MAX34451ETNA8+ silicon revision
which uses different direct format coefficients for voltage and current
measurements.

The third patch introduces support for the MAX34452, a 16-channel voltage/
current monitor that shares a similar architecture with MAX34451.

Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
---
Changes in v2:
- Patch 1/3:
    - Accepted and applied in hwmon. As per suggestion, carried this
      over to simplify submission of patch 2 and 3 as dependency exist.
- Patch 2/3:
    - Replaced ETNA8+ revision check from == to >= for future proofing
- Patch 3/3: 
    - Added MAX34452 to unsupported register check
    - Added explicit MAX34451 id check in ETNA6+ feature detection to
      prevent applying to MAX34452.
- Link to v1: https://lore.kernel.org/r/20260716-max34451_fixes-v1-0-a941b27eaecb@analog.com

---
Alexis Czezar Torreno (2):
      hwmon: (pmbus/max34440): block unsupported VIN and IIN limit registers
      hwmon: (pmbus/max34440): add support for newer version of max34451

Carlos Jones Jr (1):
      hwmon: (pmbus/max34440): Add support for MAX34452

 Documentation/hwmon/max34440.rst |  26 ++++---
 drivers/hwmon/pmbus/Kconfig      |   5 +-
 drivers/hwmon/pmbus/max34440.c   | 152 ++++++++++++++++++++++++++++++++++++---
 3 files changed, 163 insertions(+), 20 deletions(-)
---
base-commit: ec5dac32f359168b90f5361a4de16dbf7f258031
change-id: 20260716-max34451_fixes-788edb623116

Best regards,
-- 
Alexis Czezar Torreno <alexisczezar.torreno@analog.com>


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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22  1:29 Alexis Czezar Torreno [this message]
2026-07-22  1:29 ` [PATCH v2 1/3] hwmon: (pmbus/max34440): block unsupported VIN and IIN limit registers Alexis Czezar Torreno
2026-07-22  1:29 ` [PATCH v2 2/3] hwmon: (pmbus/max34440): add support for newer version of max34451 Alexis Czezar Torreno
2026-07-23 21:35   ` Guenter Roeck
2026-07-22  1:29 ` [PATCH v2 3/3] hwmon: (pmbus/max34440): Add support for MAX34452 Alexis Czezar Torreno
2026-07-23 21:36   ` 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=20260722-max34451_fixes-v2-0-bbddb18ec1d6@analog.com \
    --to=alexisczezar.torreno@analog.com \
    --cc=carlosjr.jones@analog.com \
    --cc=corbet@lwn.net \
    --cc=kunyi@google.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=nuno.sa@analog.com \
    --cc=skhan@linuxfoundation.org \
    /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

all inboxes | Powered by JetHome®