]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus) export pmbus_wait and pmbus_update_ts
authorSanman Pradhan <psanman@juniper.net>
Sat, 21 Mar 2026 18:11:30 +0000 (18:11 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 31 Mar 2026 02:45:06 +0000 (19:45 -0700)
commitdc4acb718ed9b292aec93b91ae95d71e85705c72
tree6dfaa483b5268df0ea7dd7d961d7a837d3e48576
parent709cc8ff1b6276c01cdd811578062d4b1deb3452
hwmon: (pmbus) export pmbus_wait and pmbus_update_ts

Export pmbus_wait() and pmbus_update_ts() so that PMBus device
drivers which perform raw I2C transfers outside the core helpers
can keep the PMBus core delay bookkeeping in sync.

Move PMBUS_OP_WRITE and PMBUS_OP_PAGE_CHANGE from pmbus_core.c to
pmbus.h so device drivers can pass the correct operation type flags
to pmbus_update_ts().

This is needed by the max31785 driver, which performs raw
i2c_transfer() calls for its 4-byte extended fan speed reads that
cannot use the standard PMBus word read path.

Signed-off-by: Sanman Pradhan <psanman@juniper.net>
Link: https://lore.kernel.org/r/20260321181052.27129-2-sanman.pradhan@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c