mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hwmon: (pmbus/max31785) refactor inter-access delay
@ 2026-03-09  0:45 Sanman Pradhan
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Sanman Pradhan @ 2026-03-09  0:45 UTC (permalink / raw)
  To: Sanman Pradhan, Guenter Roeck; +Cc: Sanman Pradhan, linux-hwmon, linux-kernel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-17 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-09  0:45 [PATCH v2 0/2] hwmon: (pmbus/max31785) refactor inter-access delay Sanman Pradhan
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

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®