From: sashiko-bot@kernel.org
To: "Arthur Korn" <akorn@google.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: (pmbus) Fall back to CLEAR_FAULTS when STATUS_CML is read-only
Date: Wed, 25 Nov 2026 18:20:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-233970@kernel.org> (raw)
In-Reply-To: <20261125181336.3298961-1-akorn@google.com>
> Some PMBus 1.2 devices (such as ADI ADM1273 and ADM1281) report
> PMBUS_REVISION = 0x22 and implement STATUS_CML (0x7e) as read-only:
> they ACK SMBus byte writes to PMBUS_STATUS_CML without clearing latched
> fault bits, and only clear STATUS_CML via CLEAR_FAULTS (0x03).
>
> During pmbus_init_common(), probing an unsupported register such as
> PMBUS_WRITE_PROTECT (0x10) latches PB_CML_FAULT_INVALID_COMMAND in
> STATUS_CML. When pmbus_clear_cml_fault() writes to PMBUS_STATUS_CML and
> sees ret == 0, PB_CML_FAULT_INVALID_COMMAND remains latched, causing
> subsequent pmbus_check_status_cml() calls during attribute discovery to
> fail with -EIO.
>
> Verify on non-write-protected devices that PB_CML_FAULT_INVALID_COMMAND
> and PB_CML_FAULT_INVALID_DATA actually cleared when a CML fault is
> expected or cleared unconditionally. If the write succeeds and either
> [ ... ]
> and VSA), Renesas RAA228234 (isl68137), Infineon XDPE1A2G5B (tda38740),
> ADI ADM1266, and factory write-protected converters.
>
> Fixes: d9d30e1cb9ca ("hwmon: (pmbus) Clear only CML command and data faults during probe")
> Signed-off-by: Arthur Korn <akorn@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125181336.3298961-1-akorn@google.com?part=1
next prev parent reply other threads:[~2026-11-25 18:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:13 [PATCH v2] hwmon: (pmbus) Fall back to CLEAR_FAULTS when STATUS_CML is read-only Arthur Korn
2026-11-25 18:20 ` sashiko-bot [this message]
2026-11-26 1:47 ` 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=sashiko-outbox-233970@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akorn@google.com \
--cc=linux-hwmon@vger.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.