From: Sanman Pradhan <sanman.p211993@gmail.com>
To: Sanman Pradhan <sanman.p211993@gmail.com>,
Guenter Roeck <linux@roeck-us.net>
Cc: Sanman Pradhan <psanman@juniper.net>,
linux-hwmon <linux-hwmon@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH v2 0/2] hwmon: (pmbus/max31785) refactor inter-access delay
Date: Sun, 8 Mar 2026 17:45:06 -0700 [thread overview]
Message-ID: <20260309004508.78609-1-sanman.p211993@gmail.com> (raw)
From: Sanman Pradhan <psanman@juniper.net>
Thanks for applying Patch 1 from the previous series.
This v2 series addresses the feedback regarding the raw i2c_transfer()
error path in the MAX31785 driver. Instead of relying on local
usleep_range() calls, this series exports the PMBus core timing helpers
so the driver can utilize the core's delay management.
Changes in v2:
- Dropped the i2c_smbus_write_byte_data() wrapper cleanup (applied upstream).
- Patch 1 (New): Export pmbus_wait() and pmbus_update_ts() from the PMBus
core, and move PMBUS_OP_* macros to drivers/hwmon/pmbus/pmbus.h.
- Patch 2: Replaced the usleep_range() sandwich in max31785_read_long_data()
with the newly exported core timing functions. Placed pmbus_update_ts()
before the error check to ensure the core accurately tracks the bus
transaction even on failure.
Sanman Pradhan (2):
hwmon: (pmbus/core) export pmbus_wait and pmbus_update_ts
hwmon: (pmbus/max31785) use access_delay for PMBus-mediated accesses
drivers/hwmon/pmbus/max31785.c | 184 ++++++++++---------------------
drivers/hwmon/pmbus/pmbus.h | 9 ++
drivers/hwmon/pmbus/pmbus_core.c | 13 +--
3 files changed, 70 insertions(+), 136 deletions(-)
--
2.34.1
next reply other threads:[~2026-03-09 0:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 0:45 Sanman Pradhan [this message]
2026-03-09 0:45 ` [PATCH v2 1/2] hwmon: (pmbus) export pmbus_wait and pmbus_update_ts Sanman Pradhan
2026-03-09 0:45 ` [PATCH v2 2/2] hwmon: (pmbus/max31785) use access_delay for PMBus-mediated accesses Sanman Pradhan
2026-03-17 18:11 ` Sanman Pradhan
2026-03-17 18:53 ` 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=20260309004508.78609-1-sanman.p211993@gmail.com \
--to=sanman.p211993@gmail.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=psanman@juniper.net \
/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®