[PATCH v2 0/2] hwmon: (pmbus/max31785) refactor inter-access delay

Sanman Pradhan posted 2 patches 1 month ago
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(-)
[PATCH v2 0/2] hwmon: (pmbus/max31785) refactor inter-access delay
Posted by Sanman Pradhan 1 month ago
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