diff options
author | Mårten Lindahl <marten.lindahl@axis.com> | 2022-06-14 11:38:54 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-07-13 08:38:20 -0700 |
commit | 07fb76273db89d9340fa1fea2997d73fa3768ab9 (patch) | |
tree | 500a59d874257de003e22dd0062b3defab1cbc0d /ipc | |
parent | b674bcb13f418e0580878c21afbe14c4bdfa3138 (diff) | |
download | linux-next-07fb76273db89d9340fa1fea2997d73fa3768ab9.tar.gz |
hwmon: (pmbus) Introduce and use cached vout margins
When setting a new voltage the voltage boundaries are read every time to
check that the new voltage is within the proper range. Checking these
voltage boundaries consists of reading one of PMBUS_MFR_VOUT_MIN/
PMBUS_VOUT_MARGIN_LOW registers and then PMBUS_MFR_VOUT_MAX/
PMBUS_VOUT_MARGIN_HIGH together with writing the PMBUS_CLEAR_FAULTS
register.
Since these boundaries are never being changed, it can be cached and
thus saving unnecessary smbus transmissions.
Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20220614093856.3470672-2-marten.lindahl@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions