]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus) Introduce page_change_delay
authorWilliam A. Kennington III <william@wkennington.com>
Mon, 7 Apr 2025 20:10:02 +0000 (13:10 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Apr 2025 14:18:27 +0000 (07:18 -0700)
commit73e5b6b51f00f3c8a8e7531d4a8e211f5f8cfc02
treee3c542a1cf6664d2cd89d0c27efc9f42c5fdf2dd
parent2c183963fb5fdd849cda66ddf2d93d88d2296a75
hwmon: (pmbus) Introduce page_change_delay

We have some buggy pmbus devices that require a delay after performing a
page change operation before trying to issue more commands to the
device.

This allows for a configurable delay after page changes, but not
affecting other read or write operations.

This makes a slight behavioral tweak to the existing delay logic, where
it considers the longest of delays between operations, instead of always
chosing the write delay over the access delay.

Signed-off-by: William A. Kennington III <william@wkennington.com>
Link: https://lore.kernel.org/r/20250407201002.1198092-1-william@wkennington.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c